开发者

wp7 Webbrowser : We're having trouble displaying this page

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜