user3344460
user3344460

Reputation:

WebView Stop Navigation

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

Answers (2)

Eddie
Eddie

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

Pradeep AJ- Msft MVP
Pradeep AJ- Msft MVP

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

Related Questions