How to change the startup page on a WP7 application

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 the properties node in the Project Explorer window.) Happy Programming

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

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 is DeserializeXmlNode(). This method takes JSON text and deserializes itRead More

How to prevent automatic screen lock in WP7

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 practices here

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

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 in WP7 using DesignerProperties.IsInDesignTool property, if it is true, youRead More

Webcams in Silverlight 4.0

Microsoft Silverlight 4.0 supports Webcam and microphone access from Web Applications like Flash. This feature enables a number of scenarios, such as capturing and displaying images, uploading profile pictures to social networking applications etc. Here is code part, which will start the webcam, stop the webcam and captures the image. Initialize the web cam StartRead More

Free .NET Decompiler – JustDecompile

Few days back I read one blog post from Telerik, about beta release of JustDecompile. From official blog : JustDecompile is a new, free developer productivity tool designed to enable easy .NET assembly browsing and decompiling. In the past it has only worked with .NET assemblies, but today it also works with Silverlight XAP files.Read More