How would i go about opening the webbrowser with a specific url on button click.
Put the following code in the button Click event handler:
var task = new Microsoft.Phone.Tasks.WebBrowserTask
{
URL = uri
};
task.Show();
with this code on button handler event you can navigate to the url assigned to var URL
WebBrowserTask wbTask = new WebBrowserTask();
var URL = "http://create.msdn.com";
wbTask.Uri = new Uri(URL, UriKind.RelativeOrAbsolute);
wbTask.Show();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With