0
我想停止瀏覽器導航,當我點擊button.I嘗試在下面的方法,但它沒有奏效。如何停止瀏覽器在csharp中導航windowsphone
private void webBrowser1_Navigating(object sender, NavigatingEventArgs e)
{
button2.Click += new RoutedEventHandler((object caller,System.Windows.RoutedEventArgs f) =>
{
e.Cancel = true;
});
}