private void Dispatcher_UnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e) { if (!e.Handled) { System.Net.WebException ex = e.Exception as System.Net.WebException; if (ex != null) { e.Handled = true; Pages.ErrorPage errorPage = new Mubox.QuickLaunch.Pages.ErrorPage(); errorPage.DataContext = ex; frameContentPage.Navigate(errorPage); } } }
public void ShowErrorPage(Exception ex) { Pages.ErrorPage errorPage = new Mubox.QuickLaunch.Pages.ErrorPage(); errorPage.DataContext = ex ?? new Exception("Network failure, check your Firewall."); this.frameContentPage.Navigate(errorPage); }