Ch.Epyx.WindMobile.WP7.App.Application_UnhandledException C# (CSharp) Method

Application_UnhandledException() private method

private Application_UnhandledException ( object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e ) : void
sender object
e System.Windows.ApplicationUnhandledExceptionEventArgs
return void
        private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
        {
            if (System.Diagnostics.Debugger.IsAttached)
            {
                Debug.WriteLine(e.ExceptionObject.GetType().Name);
                Debug.WriteLine(e.ExceptionObject.Message);
                Debug.WriteLine(e.ExceptionObject.StackTrace);

                // An unhandled exception has occurred; break into the debugger
                System.Diagnostics.Debugger.Break();
            }
            e.Handled = true;
            //ViewModel.ViewModelLocator.ExceptionStatic = new ExceptionViewModel(e.ExceptionObject);
            //(RootVisual as PhoneApplicationFrame).Source = new Uri("/View/ExceptionView.xaml", UriKind.Relative);
        }