我想从我的XAML应用中打开外部webbrowser,类似于:want to open Link in external browser of WP7
我似乎无法找到WebBrowserTask对象:
Dim wbt As New WebBrowserTask()
wbt.Uri = New Uri("http://xxx.xxx.com/xxx.aspx")
wbt.Show()
WindowsRT / XAML还有另一种方法吗?
感谢名单!
答案 0 :(得分:1)
您应该使用Launcher class。
Dim uri As New Uri("http://www.bing.com")
Async Sub DefaultLaunch()
' Launch the URI
Dim success = await Windows.System.Launcher.LaunchUriAsync(uri)
If success Then
' URI launched
Else
' URI launch failed
End If
End Sub
答案 1 :(得分:1)
await Launcher.LaunchUriAsync(new Uri(uri));