XAML Errors and Help
The Windows Presentation Foundation (WPF) Designer for Visual Studio provides a full Extensible Application Markup Language (XAML) compiler and language service. You edit XAML in XAML view. If the XAML is incorrect, errors are displayed in the Error List window. For more information, see Error List Window.
Error List
The Error List window displays errors which occur when loading the XAML. You load XAML by opening a XAML file with the File menu, by double-clicking a XAML file in Solution Explorer, or by pasting XAML into XAML view.
Help Integration
The Error List window provides full integration with the Visual Studio Help system. Select an error in the Error List window, and press F1 to see the corresponding Help topic. For more information, see Walkthrough: Interpreting XAML Errors in the WPF Designer.
XAML Loader and Error Messages
The Help topic for each WPF Designer error message describes the nature of the XAML load error. The following table shows the categories of XAML errors. For more information, see XAML Parser Architecture.
XAML Loading Phase |
Error message |
---|---|
XML Syntax Verification |
This error is raised when the XAML file is not a well-formed XML document. |
XAML Syntax Verification |
This error is raised when the file is a valid XML document, but is not a well-formed XAML document. |
Model and Object Instantiation |
This error is raised when the file is a well-formed XAML document, but contains one or more type mismatches. |
See Also
Tasks
Walkthrough: Editing XAML in the WPF Designer
Walkthrough: Interpreting XAML Errors in the WPF Designer
Concepts
Split View: Viewing the WPF Design Surface and XAML at the Same Time