public void Show(Exception ex) { if (Dispatcher.CurrentDispatcher.Thread.IsBackground) { Dispatcher.CurrentDispatcher.Invoke(() => Show(ex)); return; } var dialog = _factory.CreateExceptionDialog(); //dialog.SetOwner(_application.GetMainWindow()); dialog.SetStartupLocation(WindowStartupLocation.CenterScreen); dialog.SetIcon(SystemIcons.Error); dialog.SetTitle(ExceptionDialogTitle); dialog.SetMessage(ExceptionMessage); dialog.SetException(ex); dialog.ShowDialog(); }