private void OnDispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e) { System.Diagnostics.Trace.WriteLine(e.Exception.ToString()); }