简体   繁体   中英

WebBrowser buttons from scratch

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?

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();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM