How to change the startup page on a WP7 application

Standard

Sometimes you may need to change the startup page of Windows Phone application. By default it will be pointing to MainPage.xaml. You can modify the WMAppManifest.xml to change the default page. In the WMAppManifest.xml you will find the following.(You can get the WMAppManifest.xml by expanding read more →

How to convert JSON to XML and vice versa in C#

Standard

Json.NET supports converting JSON to XML and vice versa using the XmlNodeConverter. The JsonConvert has two helper methods for converting between JSON and XML. The first is SerializeXmlNode(). This method takes an XmlNode and serializes it to JSON text. The second helper method on JsonConvert read more →

How to prevent automatic screen lock in WP7

Standard

If you are developing some travel applications or fitness applications, you may want to disable automatic screen locking feature of Windows Phone. You can disable this using UserIdleDetectionMode property of PhoneApplicationService.Current class. You can find more details about Idle Detection for Windows Phone and best read more →

How to detect if the application is in design mode in WP7

Standard

Sometimes you may require to detect whether the Application is in Design mode or not in the view model, otherwise if you are creating instance of DataContext or using Application object etc, XAML designer will not display the UI. You can detect the design mode read more →