开发者

wp7 Webbrowser : We're having trouble displaying this page

开发者 https://www.devze.com 2023-03-25 18:54 出处:网络
how to catch th开发者_运维知识库e error like \"We\'re having trouble displaying this page.\" of the webbrowser control ?The most you can do is handle NavigationFailed:

how to catch th开发者_运维知识库e error like "We're having trouble displaying this page." of the webbrowser control ?


The most you can do is handle NavigationFailed:

browser.NavigationFailed += new System.Windows.Navigation.NavigationFailedEventHandler(browser_NavigationFailed);

void browser_NavigationFailed(object sender, System.Windows.Navigation.NavigationFailedEventArgs e)
{
    Debug.WriteLine(e.Exception);
}
0

精彩评论

暂无评论...
验证码 换一张
取 消