Tag: Windows Phone 8

How to Create an Implicit Style in Windows Phone 8 ?

In one of the previous article , we demonstrated how to create an explicit style in Windows Phone 8 for TextBlock . In this article , we will explore how one can create an implicit style in Windows Phone 8. How to Create an Implicit Style in Windows Phone 8 ? To create an Implicit style , the steps are pretty simple , don’t specify…

How to Save File to Isolated Storage in Windows Phone 8?

There are times when you want to copy the files to isolated storage in your Windows Phone 8 App which you can do it easily using C#. Below is a sample code snippet that demonstrates the copying of file to isolated storage in Windows Phone 8 using C#? How to Save File to Isolated Storage in Windows Phone 8? Calling the function Note: make sure…

How to Open External Link using Hyperlink Control in Windows Phone 8?

The HyperLinkButton provides one of the easiest way to navigate to an external link without using the WebBrowserTask in Windows Phone 8. Below is a sample code snippet demonstrating how to use the HyperLinkControl to open external link in Windows Phone 8. How to Open External Link using HyperLinkControl in Windows Phone 8? Note that you need to specify the Target name to _blank for…

Displaying data in flat list in Windows Phone 8 LongListSelector Control

Below is a sample code snippet demonstrating the display of the flat list in the Windows Phone 8 LongListSelector Control. Displaying data in flat list in Windows Phone 8 LongListSelector Control LongListSelector Declaration <phone:LongListSelector Name=”lstWebsites” HorizontalAlignment=”Left” VerticalAlignment=”Top” LayoutMode=”List” IsGroupingEnabled=”False” Width=”446″> <phone:LongListSelector.ItemTemplate> <DataTemplate> <StackPanel> <TextBlock Text=”{Binding Name}” /> </StackPanel> </DataTemplate> </phone:LongListSelector.ItemTemplate> </phone:LongListSelector> Model public class WebsiteName { public string Name { get; set; } public int…

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.