Reputation: 185
How do I display a webpage on demand, in Windows Phone 8?
Upvotes: 0
Views: 643
Reputation: 15278
If you want to launch Inernet Explorer with a specified webpage, use the WebBrowserTask:
WebBrowserTask webBrowserTask = new WebBrowserTask();
webBrowserTask.Uri = new Uri("http://www.google.com", UriKind.Absolute);
webBrowserTask.Show();
If you want to embed a web browser in your app, use the WebBrowser control
<phone:WebBrowser x:Name="webBrowser1" IsScriptEnabled="True" />
and in the code-behind:
webBrowser1.Source = new Uri("http://www.google.com");
Upvotes: 2