views:

35

answers:

2

Hi,

I'm trying to open a webpage in a Silverlight App for Windows Phone 7.

Is there a way to open Internet Explorer?

+6  A: 

You'll need to use the WebBrowser Task to open a WebPage in Internet Explorer.
Add the following using statement:

using Microsoft.Phone.Tasks;

Then you can use the Task in a function such as below:

WebBrowserTask task = new WebBrowserTask();
task.URL = "http://www.stackoverflow.com";
task.Show();

Hope this helps!

RoguePlanetoid
This starts the browser, thanks!
Tim van Dalen
No problem, when I first wanted to do this it took me a while to find an example!
RoguePlanetoid
+1  A: 

You can use the WebBrowser control in your app to open local HTML content or open a website. Here is an article that shows you how to load content into the WebBrowser control. if you need to style the content in the WebBrowser control, check this link and this.

HTH, indyfromoz

indyfromoz