Tag: Windows Phone 8
How to Get the Address based on the Co-Ordinates in Windows Phone 8 ?
Below is a sample code snippet that demonstrates how to get the address of the location based on the co-ordinates in Windows Phone 8. How to Get the Address based on the Co-Ordinates in Windows Phone 8 ? In the below code snippet , the latitude and longitude is fixed . The Google’s API is used to get the location details by passing it to…
How to Create an Explicit Style in Windows Phone 8 ?
The developers can utilize the style resources to create styles and use them within the Windows Phone Application. For example , the developers can create a style for the textblock with a key identifier in the app.xaml file and then reuse them in different screens of the application. How to Create an Explicit Style in Windows Phone 8 ? To create an explicit style ,…
How to send SMS in Windows Phone 8 Programatically using C#?
In Windows Phone, the developers can send SMS from their Windows Phone 8 Programatically using the launchers. The Windows Phone SDK provides the SMSComposeTask launcher which can be used to send SMS in Windows Phone 8. Below is a code snippet demonstrating the usage of the SMSComposeTask to send SMS in Windows Phone 8. How to send SMS in Windows Phone 8 Programatically using C#?
How to Get the string from AppResources file in Windows Phone 8 ?
If you want to retrieve the value from the AppResources file in Windows Phone 8 , you can use one of the below options. How to Get the string from AppResources file in Windows Phone 8 ? 1. Using the AppResources.<Property> Assume that the string in the AppResources file is ApplicationTitle and the which contains the value “Abundantcode for Windows Phone development” . , you…
Will the Windows Phone 7 App run on Windows Phone 8 Devices?
This is one of the most frequently asked question by any newbie windows phone developer. Will the developed Windows Phone 7 App run on Windows Phone 8 Devices? The answer to this pretty simple and straight forward. Yes, in most cases, the Windows Phone 7 app will run fine on Windows Phone 8 devices. But the only drawback here is that the apps targeting the…
How to Launch the Device Bluetooth Settings App from the Windows Phone 8 App?
Below is a sample code snippet that demonstrated how the developers can use the ConnectionSettingsTask launcher to launch the windows phone device’s Bluetooth settings app from the Windows Phone 8 App. How to Launch the Device Bluetooth Settings App from the Windows Phone 8 App?
Sending Email using URI LaunchUriAsync in Windows Phone 8
Below is a sample code snippet of the button click event which launches the Email App and then creates a new Message with the specified email address. Sending Email using URI LaunchUriAsync in Windows Phone 8 Once the Email App is launched, the user can type the message and tap the send icon to send the email.
What are the Different Tile templates in Windows Phone 8?
The Windows Phone 8 SDK provides the developers with the option to use one of the below tile templates in their windows phone 8 app. 1. TemplateFlip 2. TemplateCycle 3. TemplateIconic What are the Different Tile templates in Windows Phone 8? The TemplateFlip provides the developers to display information in the front and the back side of the tile where the tile flips front and…
How to Download Map in Windows Phone 8 Programatically using C#?
The Windows Phone 8 SDK provides the MapDownloadTask which lets the users to download the region map which can be used for offline usage. This will launch the Map Download App which lets the users to select the map which needs to be downloaded. How to Download Map in Windows Phone 8 Programatically using C#? Below is a sample code snippet demonstrating how the user…
Launching the Wifi Settings App using URI Scheme in Windows Phone 8
Below is a sample code snippet demonstrating on how to launch the Wifi Settings App via the URI Scheme and LaunchUriAsync method in Windows Phone using C#. Launching the Wifi Settings App using URI Scheme in Windows Phone 8
Alternate Method to Navigate from Page in Windows Phone 8 using C#
The NavigationService.Navigate method i.e. generally used to navigate from one page to another page in Windows Phone 8 SDK. The NavigationService also exposes a property “Source” which can be used to Get/Set the URI of the page . By Setting this property, the Application Frame loads the specified page. Alternate Method to Navigate from Page in Windows Phone 8 using C# Below is a sample…
How to Terminate an Windows Phone 8 App using C#?
If you want to programmatically terminate the windows phone 8 application , you can use the Application.Terminate() method . How to Terminate an Windows Phone 8 App using C#? When using the Application.Terminate() , the developers should make sure that all the necessary data is saved because , the Application Closing event handler wont be raised in this case.
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 Enable AirplaneMode from the Windows Phone 8 App?
Below is a sample code snippet that demonstrated how the developers can use the ConnectionSettingsTask launcher to enable or disable the AirplaneMode from the Windows Phone 8 App. How to Enable AirplaneMode from the Windows Phone 8 App?
How to Launch Map Application in Windows Phone 8 using C#?
Below is a sample code snippet that demonstrates how to launch the Maps Application in Windows Phone 8 programmatically using C#. How to Launch Map Application in Windows Phone 8 using C#?
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…
How to Deserialize JSON data in Windows Phone 8 app ?
To Deserialize JSON data in Windows Phone 8 , the developers can utilize the json.NET . How to Deserialize JSON data in Windows Phone 8 app ? Below is a sample code snippet that demonstrates how to Deserialise JSON data in Windows Phone 8 app.
How to Cancel Navigation Programatically in the OnBackKeyPress Event in WP8?
Below is a sample code snippet demonstrating how to cancel Navigation Programatically in the OnBackKeyPress Event in WP8? How to Cancel Navigation Programatically in the OnBackKeyPress Event in WP8?