public static void ShowDialog(Window owner, ExceptionInfo exInfo) { exInfo.EnsureNotNull(nameof(owner)); exInfo.EnsureNotNull(nameof(exInfo)); SeeingSharpWpfErrorDialog errorDlg = new SeeingSharpWpfErrorDialog(); errorDlg.DataSource = exInfo; errorDlg.Owner = owner; errorDlg.ShowDialog(); }