WPF Applications – Handling the Unhandled
- by David Totzke
Instead of just letting your application crash, you can attach a method to the DispatcherUnhandledExceptionEventHandler and one to the AppDomain.Current.UnhandledException. You wire these up in the code behind of your application which by default is App.xaml.cs. You can log these errors or throw up a message Don Box and tell the user…