Catching Exceptions in WPF at the FrameWork Level
问题 I'm developing a light-weight WPF MVVM framework, and would like to be able to catch unhandled exceptions, and ideally recover from them. Ignoring for the moment all the good arguments for not doing this, I encounter the following situation: If I register a handler for AppDomain.CurrentDomain.UnhandledException within the OnStartup method of the App.xaml.cs, as follows... App.xaml.cs: protected override void OnStartup(StartupEventArgs e) { AppDomain.CurrentDomain.UnhandledException += new