locked
win8 store app RRS feed

  • Question

  • iam working on win8 store app and i have image in my app i want when user tapped it the app redirect him to internet explorer with specific link ...and i need that is done from the c# code not xaml thanks an advanced ...

    Friday, May 3, 2013 2:41 PM

Answers

All replies

  • iam working on win8 store app and i have image in my app i want when user tapped it the app redirect him to internet explorer with specific link ...and i need that is done from the c# code not xaml thanks an advanced ...

    You could always display the image with a WebView with a link to the original image with the <a> target set to _blank such as "<a href="http://site.com/image.jpg" taget="_blank"><img src="localimage"></a>"
    Friday, May 3, 2013 2:47 PM
  • Also, try this -

    <Image Tapped="Image_Tapped_1" Source="Assets/Logo.png"/>

    private async void Image_Tapped_1(object sender, TappedRoutedEventArgs e)
            {
                await Launcher.LaunchUriAsync(new Uri("http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/d0a5cefa-3fbe-4a95-aa59-1c3343277b85"));
                e.Handled = true;
            }
    http://msdn.microsoft.com/en-us/library/windows/apps/hh701480.aspx


    Thanks,
    Sachin
    My Samples | Personal Website


    • Edited by Sachin S Friday, May 3, 2013 2:55 PM Added link
    • Marked as answer by ayman nabil Friday, May 3, 2013 2:56 PM
    Friday, May 3, 2013 2:51 PM