Launching a Web Browser from Windows Phone 7 App

The WebBrowserTask allows an Windows Phone 7 App to launch the web browser .

This class is defined in Microsoft.Phone.Tasks namespace .

Using Microsoft.Phone.Tasks;

The WebBrowserTask includes a property “URL” that gets or sets the URL that should be navigated to when the web browser is launched.

private void button1_Click(object sender, RoutedEventArgs e)
{
      WebBrowserTask webbrowser = new WebBrowserTask();
      webbrowser.URL = "www.ginktage.com";
      webbrowser.Show();
}

The webbrowser should be launched and the URL will be navigated to the specified URL when the Show method of the Web Browser is called .

 

 

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

One Response

  1. Launching a Web Browser from Windows Phone 7 App | ProgramInDotnet August 1, 2011 Reply
  2. Dattaswarup S December 13, 2011 Reply

Leave a Reply


x

Interesting BlogPosts to read

How to get an Enumerator from range of elements from ArrayList in C# ?
The code snippet shown in this blog post demonstrates how you can get the enumeraor from a range of ...
How to check for the column name in an SqlDataReader Object in C# ?
When working in ADO.NET for data access , there are times when you want to check to see if a column ...
Download - Pokemon Go for for Windows 10 (Third Party app)
Pokemon Go is one of the popular AR games for android and iOS devices and now , the game is made ava...