whihathac
whihathac

Reputation: 1761

Open Web link programmatically in IE - non-Metro mode

Is there a way to open a link in IE (non-metro mode) from my metro app programmatically?

Upvotes: 0

Views: 671

Answers (1)

Andy
Andy

Reputation: 1778

For metro applications users are in control of the applications that launch for uri and files.

To browse to a webpage (JavaScript but the C# is similar):

var uri = new Windows.Foundation.Uri("http://www.microsoft.com");
Windows.System.Launcher.launchUriAsync(uri).then(function () { });

To launch other apps you should look at the Windows.System.Launcher class.

Upvotes: 2

Related Questions