Category Archives: winrt

Saving UI element as jpeg for Windows Phone 8.1

This is an follow-up of the¬†Drawing pad for Windows Phone 8.1 Assume that the content that is needed to save into jpeg is in a scrollviewer, the below would be the implementation on saving the content. It works for most … Continue reading

Posted in C#, Windows Phone, winrt | Tagged , , | Leave a comment

Drawing pad for Windows Phone 8.1

Many had asked on how do we create a drawing pad for Windows Phone 8.1. It is very simple, in fact the code to get it done is exactly the same as that for Windows 8.1 In the xaml, you … Continue reading

Posted in C#, Windows Phone, winrt | Tagged , , | 3 Comments

Adding Custom font for Pivot Header

If you would want to have custom font for the pivot header, you would have to declare the fontfamily separately as shown below in the sample otherwise the displayed font will remain the same. However if the custom font that … Continue reading

Posted in Silverlight, Windows Phone, winrt | Tagged , , | 1 Comment

await MessageDialog in the body of a catch clause

A major disadvantage of using MessageDialog is that you need to await it to show the messagebox and when often you would need to display error messages in the catch clause. In normal situation you would be doing the below: … Continue reading

Posted in C#, Windows Phone, winrt | Tagged , , , , | 5 Comments

Checking for Internet Connection

In my previous post where I had shared about checking for Network Connectivity, NetworkInterface.GetIsNetworkAvailable(), however what the method is actually doing is to simple check for network connection and not necessary internet connection. There are situation where there is network … Continue reading

Posted in C#, Windows Phone, winrt | Tagged , | Leave a comment

Using Google Analytics to your Windows Phone Apps

For developers that would like to track the usage of your Windows Phone app that are in the marketplace. Google Analytics is actually a decent choice given that setting up is fairly easy. Simply head over to http://www.google.com/analytics/ and login … Continue reading

Posted in Google, Windows Phone, winrt | Tagged , , | 4 Comments

Calculate distance between two Locations with Latitude and Longitude C#

Given that you have two set of Latitude and Longitude values, how do you calculate the distance between them? For Windows Phone the below method is highly recommended since it used built-in library. However if you need the deploy the … Continue reading

Posted in Windows Phone, winrt | Tagged , , , , , , , | 3 Comments