Tag: Windows Phone 8

Which Events to use to Save the Transient State in Windows Phone 8?

It is necessary for the developers to save the transient and the persistent state of the app when the application goes to the deactivated status. Which Events to use to Save the Transient State in Windows Phone 8? The PhoneApplicationPage’s OnNavigatedFrom and OnNavigatedTo methods can be used to save the transient state in Windows Phone 8.

How to send email in Windows Phone 8 Application Programatically using C#?

The Windows Phone 8 SDK provides the EmailComposeTask which can be used to send email in Windows Phone 8 Programatically. The EmailComposeTask launches the Email Compose screen which lets the user to verify the email content and tap on the “send” button to send email. How to send email in Windows Phone 8 Application Programatically using C#? Below is a sample code snippet that demonstrates…

How to Navigate from One Page to Another in Windows Phone 8 using Hyperlink Button?

Below is a sample code snippet demonstrating how to navigate from a page to another in Windows Phone 8 using Hyperlink Button. How to Navigate from One Page to Another in Windows Phone 8 using Hyperlink Button? Assume that the current page in “MainPage.xaml” and the “ACCode.xaml” is the destination page. One can use the code XAML <HyperlinkButton Content=”GoToAC” NavigateUri=”/ACCode.xaml” HorizontalAlignment=”Left” Margin=”73,292,0,0″ VerticalAlignment=”Top” Height=”57″ Width=”244″…

What are the Different Resolutions that Windows Phone 8 Supports ?

The Windows Phone 8 supports 3 different resolutions which includes WVGA with 480 X 800 pixels and scale factor of 1.0. WXGA with 768 X 1280 pixels and scale factor of 1.6. HD720P with 720 X 1280 pixels and scale factor of 1.5. The WVGA with 480 X 800 was already supported in Windows Phone 7.8 and earlier version and the other 2 resolutions are…

How to Implement Style Inheritance in Windows Phone 8 ?

There are times when you want to apply some styles to a control in Windows Phone 8 but you may not want to start it from scratch . In these scenarios , the developers can use the property “BasedOn” to reference another style that is defined . For example , assume that there is already a style named “Style1” and for the Style2 you might…

How to Enable JavaScript in Windows Phone 8 WebBrowser Control?

If you are using the WebBrowser control in your Windows Phone project, there are times when you want to enable JavaScript in it to achieve various things. How to Enable JavaScript in Windows Phone 8 WebBrowser Control? This is pretty simple. The WebBrowser Control in Windows Phone SDK has a property IsScriptEnabled, Just set this property to true. <phone:WebBrowser x:Name=”BrowserControl1″ IsScriptEnabled=”True” /> You are done….

How to Create a ShellToast(ToastPrompt) in Windows Phone 8 ?

Do you want to create a ShellToast from your Windows Phone 8 app ? . The Coding4fun toolkit provides some additional controls which can be used create a ShellToast in Windows Phone 8 app. How to Create a ShellToast(ToastPrompt) in Windows Phone 8 ? Below is a sample code snippet demonstrating how to achieve it using the ToastPrompt control from Coding4Fun.

Upgrading Windows Phone 7.5 App to Windows Phone 8 in Visual Studio 2012.

If you want to utilize the capabilities or the features of Windows Phone 8 in your Windows Phone 7.5 project, you might need to upgrade it to Windows Phone 8. Once you upgrade your Windows Phone 7.5 project to Windows Phone 8, you cannot revert back and hence it always better to copy/backup your Windows Phone 7.5 project before upgrading. Upgrading Windows Phone 7.5 App…

Navigate from One Page to Another in Windows Phone 8 using NavigationService

When developing a WP8, you may encounter a scenario where you need to navigate from one page to another within your application. The PhoneApplicationPage’s class has the property NavigationService which can be used to navigate from one page to another. The NavigationService exposes the Navigate method which loads the specified windows phone application page . Navigate from One Page to Another in Windows Phone 8…

How to Get the List of Appointments from the Calendar App in Windows Phone using C# ?

If you want to programmatically get the list of appointments from the calendar application of your Windows Phone device programmatically , you can use the Microsoft.Phone.UserData.Appointments. How to Get the List of Appointments from the Calender App in Windows Phone using C# ? Enable the ID_CAP_APPOINTMENTS in the WMAppManifest file and then create an instance of the Appointments class and call the SearchAsync method with…

How to Detect the App returning from Dormant or Tombstoned State in Windows Phone 8?

When the Windows Phone is deactivated, the application enters the dormant state. Some of the scenario when the application can go to the dormant state are User uses the start button to navigate to different application. User receives a call when using the application User launches the launcher or chooser. etc. How to Detect the App if returning from Dormant or Tombstoned State in Windows…

How to animate page navigation in Windows Phone 8?

In Windows Phone 8, the developers generally use the NavigationService.Navigate method to navigate from one page to another. By default, this does not include any kind of animation or transition when navigating. How to animate page navigation in Windows Phone 8? To animate page navigation in windows phone 8, you should download the Windows Phone Toolkit which is available for download from phone.codeplex.com The Windows…

How to Get a developer license to develop Windows Phone store app ?

When you installed the Windows Phone 8.1 SDK and try to create and run the first Windows Phone application . You will be prompted to get a free developer license which is necessary to develop and test the windows phone store app on the Windows 8.1 PC before publishing and getting it certified in the store . How to Get a developer license to develop…