Windows Phone 7: How to open a web browser?

How to open a web browser in Windows Phone 7? I don't care if this is the default browser or the built-in browser, although if both are possible, I would like to know.

+4
source share
1 answer

Windows Phone Forums> Windows Phone 7> Open Web Browser

If you want to open the built-in IE browser, you need to use the WebBrowserTask Object.

To do this, add links to Microsoft.Phone and Microsoft.Phone.Tasks. You can then start 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 in your application, use the WebBrowser control. Add an instance of the WebBrowser control to your form, then you can link to it in the code using the name you give It. (The default name is "webBrowser1")

+15
source

Source: https://habr.com/ru/post/1389197/


All Articles