单击windows 10打开新的url按钮

单击windows 10打开新的url按钮,windows,windows-10,win-universal-app,Windows,Windows 10,Win Universal App,我正在尝试在windows 10 Universal app中单击按钮打开链接。我使用了web视图,但它似乎不起作用。如何通过点击按钮打开url(如facebook.com或google.com)。我使用的是XAML和C#您在按钮单击事件处理程序中尝试过这个吗 等待Windows.System.Launcher.launchurisync(新Uri(“Uri地址”)在我发布问题后,我尝试了Launcher.launchurisync()并成功了。我正要更新帖子。非常感谢你。

我正在尝试在windows 10 Universal app中单击按钮打开链接。我使用了web视图,但它似乎不起作用。如何通过点击按钮打开url(如facebook.com或google.com)。我使用的是XAML和C#

您在按钮单击事件处理程序中尝试过这个吗


等待Windows.System.Launcher.launchurisync(新Uri(“Uri地址”)

在我发布问题后,我尝试了Launcher.launchurisync()并成功了。我正要更新帖子。非常感谢你。