Correction: The initialization of the handler is placed in App.xaml.cs was wrong. Better is to place it in the "Builder"-class, which return an instance to the Window. I solved the problem by changing the kind of initialization:
Application.Current.DispatcherUnhandledException += Current_DispatcherUnhandledException;
instead of
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(DispatcherUnhandledException);
And the method:
private void Current_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
{
//Do some things
}
Best Answer