Windows Phone - default web browser call

I am trying to develop a Windows Phone application, I would like to know how can I call the default web browser with a specific URL (for example, http://www.google.com ) when the program starts?

thank

+3
source share
1 answer

When you run the β€œprogram” as you say (Internet Explorer), you use the following code:

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

The WebBrowser task is located in the Microsoft.Phone.Tasks namespace, the document of which is here: Microsoft.Phone.Tasks.WebBrowserTask

, - Internet Explorer, " ".

Edit

, , . , :

, , , , , , , , , :

using Microsoft.Phone.Tasks;

, !

+4

All Articles