Windows 8 Metro website opened / mailto C #

I'm pretty confused. How to open a website in a web browser from my metro application? And how can I open the default email application?

In WPF on W7, I just ran

Process.Start("mailto://whatever"); 

Thanks in advance

+7
source share
2 answers

Metro apps on Windows 8 do not support Process.Start . It does not exist in the System.Diagnostics namespace.

A metro application cannot launch another metro application directly.

However, there are two ways to launch applications. You can run applications through file associations or through protocol handlers ( Windows.System.Launcher.LaunchUriAsync and Windows.System.Launcher.LaunchFileAsync )

Both of these solutions should solve your problem.

Examples and documentation: http://msdn.microsoft.com/en-us/library/windows/apps/windows.system.launcher.aspx

Also see: http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh779672.aspx

+10
source

This is Launcher.LaunchUriAsync(new Uri("http://verysoftware.co.uk"));

+3
source

All Articles