【问题标题】:open a new url on button click windows 10在按钮上打开一个新的 URL 单击 Windows 10
【发布时间】:2015-10-09 04:54:29
【问题描述】:

我正在尝试在 Windows 10 通用应用程序中单击按钮打开链接。我使用了网络视图,但它似乎不起作用。如何通过单击按钮打开 url(例如 facebook.com 或 google.com)。我正在使用 XAML 和 C#

【问题讨论】:

    标签: windows windows-10 win-universal-app


    【解决方案1】:

    您是否在 Button Click 事件处理程序中尝试过这个?

    await Windows.System.Launcher.LaunchUriAsync(new Uri("uri address"));

    【讨论】:

    • 在我发布问题后,我确实尝试了 Launcher.Launchuriasync() 并且它起作用了。我打算更新帖子。非常感谢。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-25
    • 1970-01-01
    • 1970-01-01
    • 2013-04-10
    • 2019-09-20
    • 1970-01-01
    相关资源
    最近更新 更多