none
[UWP][C#] How to open a website from a link on universal RRS feed

Answers

  • You could use the Windows.System.Launcher.LaunchUriAsync API: https://msdn.microsoft.com/en-us/library/hh701480.aspx

    string uriToLaunch = @"http://www.bing.com";
    var uri = new Uri(uriToLaunch);
    
    async void Launch()
    {
       string uriToLaunch = @"http://www.bing.com";
       var uri = new Uri(uriToLaunch);
    
       var success = await Windows.System.Launcher.LaunchUriAsync(uri);
    
       if (success)
       {
          // URI launched
       }
       else
       {
          // URI launch failed
       }
    }
    

    Hope that helps.

    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't ask several questions in the same thread.

    Friday, August 21, 2015 3:51 PM