private void LogUnhandledDispatcherException(object sender, DispatcherUnhandledExceptionEventArgs arg) { Logger.Exception(arg.Exception, "DispatcherUnhandledException"); arg.Handled = true; }