2013-07-05 26 views

回答

2

如果要启动Inernet Explorer中指定的网页,使用WebBrowserTask

WebBrowserTask webBrowserTask = new WebBrowserTask(); 
webBrowserTask.Uri = new Uri("http://www.google.com", UriKind.Absolute); 
webBrowserTask.Show(); 

如果你想在你的应用程序中嵌入一个Web浏览器,使用WebBrowser control

<phone:WebBrowser x:Name="webBrowser1" IsScriptEnabled="True" /> 

并且在代码隐藏中:

webBrowser1.Source = new Uri("http://www.google.com"); 
相关问题