Reputation:
I'm currently just goofing around, programming an Web Browser.
i wonder how to Stop Navigation from WebView just with a button click? if there's any bool/void's involved in the solution, explain it please.
Appreciate it!
Upvotes: 1
Views: 1602
Reputation: 671
If you are using WebView from WinRT, you can call WebView.Stop()
.
If you are using WebBrowser from WP Silverlight, you can subscribe Navigating
event and set NavigatingEventArgs.Cancel
as true.
Reference:
Upvotes: 2
Reputation: 600
You can do only using javascript,as below
private void Button_Click(object sender, RoutedEventArgs e)
{
Browser1.InvokeScript("eval", "document.execCommand('Stop');");
}
Upvotes: 1