Web Browser Control

By using this control you can access any website like a normal browser.

In this article I will demonstrate how to create a Web Browser control on a page in Windows Phone and for this I am using Microsoft Visual Studio Express 2012 for Windows Phone.

So let’s start the work.

Step 1: Create a new project named WebBrowserApp and click the "OK" button.



Step 2: Select the Operating System Version or Windows Phone Platform you want to target your project for and click the "OK" button.



Step 3: Add some code to the Grid tag named "ContentPanel" like TextBox and Button with some properties.

TextBox

Button

Step 4: Select the Web Browser control from the Toolbox on your page and put it below the button.



WebBrowser

Step 5: Create a "Click" event in the button control to write the code in the .cs file.



And add some code to the .cs file on the button click event as in the following:



Step 6: Run the application and type the URL like "http://google.com". Press the GO button to see the output.