How do I open a web browser in Windows Phone 7? I don't care if it is the default browser or an embedded browser, though if both are possible I would like to know.
Windows Phone Forums > Windows Phone 7 > Open web browser
If you want to open the built-in IE Browser then you need to use WebBrowserTask object.
To do this add references to Microsoft.Phone and Microsoft.Phone.Tasks. You can then launch the IE Browser using the following code:
WebBrowserTask wbt = new WebBrowserTask(); wbt.URL = "http://www.google.com"; wbt.Show();
If you want to embed a browser window inside your application then use the WebBrowser control. Add an instance of the WebBrowser control to your form then you can reference it in code using the name you give it. (Default name is "webBrowser1")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With