Open Web Page in Silverlight Windows Phone application
I have a Windows Phone 7 application written in Silverlight. I have a button in this application. When a user clicks this button, I want it to open the web browser and navigate the user to my website. Is it possible to do this without loading开发者_如何学JAVA a web browser control in my application? If so how?
Thanks!
Yes, you can use the WebBrowserTask class to accomplish that. Use it as follows:
WebBrowserTask task = new WebBrowserTask();
task.URL = "https://www.paypal.com/";
task.Show();
精彩评论