在 WP7 中打开具有特定 url 的网络浏览器 [英] Open webbrowser with specific url in WP7
本文介绍了在 WP7 中打开具有特定 url 的网络浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将如何在点击按钮时打开带有特定 url 的网络浏览器.
How would i go about opening the webbrowser with a specific url on button click.
推荐答案
在按钮的 Click 事件处理程序中放入以下代码:
Put the following code in the button Click event handler:
var task = new Microsoft.Phone.Tasks.WebBrowserTask
{
URL = uri
};
task.Show();
这篇关于在 WP7 中打开具有特定 url 的网络浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文