Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open an URL in the Default Web Browser in WinRT

The question says it all. Basically, I just want to know the alternative for this in WinRT:

Process.Start("http://www.google.com/");
like image 607
Elmo Avatar asked Sep 08 '12 20:09

Elmo


1 Answers

In WinRT, you can use Windows.System.Launcher.LaunchUriAsync to launch the default app associated with the specified URI. For a web link, the default browser would be used.

MSDN: Launcher.LaunchUriAsync(Uri) | launchUriAsync(Uri) method

like image 136
Nathan Kuchta Avatar answered Sep 21 '22 19:09

Nathan Kuchta