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
Metro apps on Windows 8 do not support Process.Start . It does not exist in the System.Diagnostics namespace.
Process.Start
System.Diagnostics
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 )
Windows.System.Launcher.LaunchUriAsync
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
This is Launcher.LaunchUriAsync(new Uri("http://verysoftware.co.uk"));
Launcher.LaunchUriAsync(new Uri("http://verysoftware.co.uk"));