Exemple #1
0
        public void ShowException(Exception e)
        {
            ErrorViewModel viewModel = new ErrorViewModel();
            Window         window    = new Window
            {
                Width       = 800,
                Content     = new ErrorControl(),
                DataContext = viewModel
            };

            viewModel.SetException(e);
            viewModel.CloseExceptionWindow = window.Close;
            window.ShowDialog();
        }