void Current_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e) { new ExceptionView(e.Exception).ShowDialog(); e.Handled = true; } }