Process.Start is a traditional method used in the .NET Framework that cannot be used directly in UWP applications. To open a Web URI with Microsoft Edge in UWP, we can use the
Launcher.LaunchUriAsync method . For instance:
string uriToLaunch = @"http://www.bing.com";
var uri = new Uri(uriToLaunch);
async void DefaultLaunch()
{
var success = await Windows.System.Launcher.LaunchUriAsync(uri);
if (success)
{
}
else
{
}
}
URI - . Microsoft Edge, Launcher.LaunchUriAsync(Uri, LauncherOptions) LauncherOptions.TargetApplicationPackageFamilyName. TargetApplicationPackageFamilyName , URI. Microsoft Edge "Microsoft.MicrosoftEdge_8wekyb3d8bbwe" . , .
string uriToLaunch = @"http://www.bing.com";
var uri = new Uri(uriToLaunch);
async void LaunchWithEdge()
{
var options = new Windows.System.LauncherOptions();
options.TargetApplicationPackageFamilyName = "Microsoft.MicrosoftEdge_8wekyb3d8bbwe";
var success = await Windows.System.Launcher.LaunchUriAsync(uri, options);
if (success)
{
}
else
{
}
}