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);
}
精彩评论