当 navigate(url) 在 webview 上下载 html 内容时如何停止导航?我试过这个
private void btnCancel_Click(object sender, RoutedEventArgs e)
{
WebView1.LoadCompleted -= new Windows.UI.Xaml.Navigation.LoadCompletedEventHandler(load_Completed);
}
private void load_Completed(object sender, NavigationEventArgs e)
{
//some code after the content is loaded
}
但导航过程并没有停止......