I’m working on my About page for a Windows Phone Runtime app and needed to open a hyperlink in my code behind (AboutPage.cs).
Below is the code for my Tapped event handler:
private void Image_Wordpress(object sender, TappedRoutedEventArgs e) { Launcher.LaunchUriAsync(new Uri("https://pricklytech.wordpress.com/")); }
The XAML on my About page is simply an image with the Tapped event:
<Image Source="Assets/Images/Wordpress.png" Height="64" Width="64" Tapped="Image_Wordpress"/>