You can handle the DispatcherUnhandledException event of your application.
You can see an example for it here: http://www.wpf-tutorial.com/wpf-application/handling-exceptions/.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)