Debugging and Interpreting Errors in the WPF Designer
The Windows Presentation Foundation (WPF) Designer for Visual Studio provides full debugging support for your WPF controls and applications. If errors occur, various tools and resources are available to interpret and correct the errors.
In This Section
XAML Errors and Help
Describes the Error List window and how to get help on XAML errors that appear in the WPF Designer.Error Message Reference for the WPF Designer
Contains links to topics that describe XAML errors that appear in the WPF Designer.Debugging and Interpreting Errors Walkthroughs
Contains links to topics that describe how to debug and interpret runtime errors in the WPF Designer.Loading of the visual designer was cancelled
Describes the message that appears in the WPF Designer when you cancel loading a XAML file.The document root element is not supported by the visual designer
Describes the message that appears in the WPF Designer when you open a XAML file without any visual objects.The document contains errors that must be fixed
Describes the message that appears in the WPF Designer when a XAML file contains an error.An unhandled exception has occurred
Describes the message that appears in the WPF Designer when a XAML file accesses code that contains an exception.
Reference
XamlParseException
Represents the exception class for parser-specific exceptions.ExceptionRoutedEventArgs
Provides data for the Image and MediaElement failed events.DispatcherUnhandledException
Occurs when code executing by way of the Dispatcher raises an exception which is not handled.
Related Sections
Troubleshooting WPF Designer Load Failures
Describes procedures for understanding unexpected behavior in your custom designer code.XAML
Contains links to topics that describe how to use XAML markup to define your WPF controls and applications.XAML Namespace (x:) Language Features
Contains links to topics that describe elements and attributes in the XAML namespace.WPF Namespace XAML Extensions
Contains links to topics that describe XAML markup extensions.Error List Window
Describes how errors, warnings, and messages are displayed in the Error List window.Exception Assistant
Describes the Exception Assistant dialog box, which you can use to interpret runtime exceptions.Debugging in Visual Studio
Contains links to topics that describe how to use Visual Studio to debug applications.Exception Handling (Debugging)
Describes how to use the error handling features of Visual Studio to interpret runtime exceptions.Unhandled Application Exceptions Sample
Describes how to handle the DispatcherUnhandledException event to process recoverable and unrecoverable unhandled application exceptions.