public ExceptionWindow(ExceptionWindowModel model) { Model = model; InitializeComponent(); DataContext = Model; }
public void Launch() { var exception = GetException(); var model = new ExceptionWindowModel { ExceptionText = exception.ExceptionHierarchyToString(), }; var window = new ExceptionWindow(model); window.ShowDialog(); }
public void HandleException(Exception exception) { var model = new ExceptionWindowModel { ExceptionText = exception.ExceptionHierarchyToString(), }; var window = new ExceptionWindow(model); new WindowInteropHelper(window) { Owner = GetActiveWindow() }; window.ShowDialog(); }
public void Launch() { var exception = GetException(); var model = new ExceptionWindowModel { ExceptionText = exception.ExceptionHierarchyToString(), }; var runner = new CrossThreadRunner(); runner.RunInSta(() => { var window = new ExceptionWindow(model); window.ShowDialog(); }); }