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

Published on August 15, 2013 by abundantcode

Filed under Windows Phone

Last modified August 15, 2013

Print this page

rate 1 star rate 2 star rate 3 star rate 4 star rate 5 star
Your rating: none, Average: 0 (0 votes)

This article have been viewed 4193 times

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?

<HyperlinkButton x:Name="HyperLnk" Content="GoToAC" NavigateUri="http://Abundantcode.com" TargetName="_blank" HorizontalAlignment="Left" Margin="73,292,0,0" VerticalAlignment="Top" Height="57" Width="244" />

Note that you need to specify the Target name to _blank for opening the external link or else you will receive the “NavigationFailed” error.

0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Comment


x

You might be Interested in these Posts

How to delete user account from command line in Windows 10 ?

You can delete a user account from command line in Windows 10 using the net user command and specify...

How to add new user account from command line in Windows 10 ?

You can add a new user account in Windows 10 using command prompt using the net user command and pas...

How to open display settings from command line in Windows 10 ?

The display properties can be found in the settings app in Windows 10 which lets the users to config...