Creating an About page into a Windows Phone 8 application, I thougth it would be interesting to put a hyperlink button for navigating to a URL.
If you try to set a URL by the following way, Visual Studio will throw you a navigation exception:
Code Above will go to NavigationFailed:
To perform this task there is a very easy way, by using the class “Microsoft.Phone.Tasks.WebBrowserTask”
Steps to follow are:
1. Asociate a method for clicking event:
2. In code behind, you will have to add this code:
Just doing this, device will open a browser with the specific url. and clicking back we will comeback to our application.
I hope it helps.