WebBrowser buttons from scratch

51 Views Asked by At

I am developing a Windows Phone 7.1 application in Visual Studio 2010 (I know it's old, but I don't have the resources to use a newer Visual Studio, just trying to develop something).

I added a WebBrowser control to the empty app, and an app-bar. Now I want to add two buttons to the app bar which do link to a page, how can I do that?

1

There are 1 best solutions below

0
gnyangolo On

Try the WebBrowser class; after adding the webview element from the browser;

Depending on where you want to navigate to you can use;

webBrowser1.Navigate(new Uri("http://www.bing.com", UriKind.Absolute));

or if you want the browser to go back use ;

webBrowser1.Goback();