private void Dispatcher_UnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
{
e.Handled = true;
if (e.Exception is XamlParseException)
{
if (e.Exception.InnerException != null)
{
if (e.Exception.InnerException is FileLoadException)
{
return;
}
}
}
var crash = new ErrorReport(e.Exception);
crash.Show();
}