Page Stack in Windows Phone

In your application there may be many pages and you will come across requirement to navigate between pages. Windows Phone navigation model allows you to navigate between pages. Windows Phone navigation model is same as web based page navigation model. Even though name suggests in Windows Phone, pages are not windows. In your application, you … Continue reading Page Stack in Windows Phone

How to work with ToggleSwitch in Windows Phone 7

In this post I will discuss Toggle Switch Button. This comes as part of Silverlight toolkit for Windows Phone 7 and you get it from here To work with Toggle Switch, you need to add namespace     You can use ToggleSwitch as below,   You can set Header and Content of the Toggleswitch. If … Continue reading How to work with ToggleSwitch in Windows Phone 7

How to work with WrapPanel in Windows Phone 7

In this post I will show you the various way of working with WrapPanel in Windows Phone 7 application. I will discuss Basic working of WrapPanel WrapPanel with ScrollBar Using WrapPanel in a ListBox WrapPanel comes as part of Silverlight for Windows Phone Toolkit. You can download it from here . You need to install … Continue reading How to work with WrapPanel in Windows Phone 7

How to navigate to other page from a user control in Windows Phone 7

Let us say, you have a scenario to navigate from user control In code behind of the user control very first put below namespace, Next globally define an event as below, After this you need to create a method to handle page navigation event as below. This function is taking URI to navigate as input … Continue reading How to navigate to other page from a user control in Windows Phone 7

Code to disable hardware Back Button in Windows Phone 7

You can come across requirement when you need to disable hardware back button in Windows Phone 7. If you want to disable hardware back button on Page1 then you need to override OnBackKeyPress method on Page1. To disable you need to make CancelEventArgs value to cancel as given below, If you want you can display … Continue reading Code to disable hardware Back Button in Windows Phone 7

Code to make call in Windows Phone 7

Launchers are used to perform task provided by phone operating system. Making Call is feature of Windows phone operating system and can be used by Launcher API. PhoneCallTask launcher is used to call. This launcher class is defined as below,   To work with PhoneCallTask, first you need to add namespace of Microsoft.Phone.Task Then create … Continue reading Code to make call in Windows Phone 7