Share via


Handling errors

If the Extensible Application Markup Language (XAML) parser in Microsoft Expression Blend encounters errors while loading or updating a .xaml document, Expression Blend disables the artboard (the Design view) and displays a notification hyperlink to indicate that you must fix the XAML in XAML view. Click the notification link to automatically switch to XAML view.

Tip

We recommend that you have previous experience working with XAML before you begin to edit your Expression Blend projects in XAML view. Editing XAML directly may result in parsing errors in your application that you will have to fix before Expression Blend can correctly display your documents on the artboard in Design view.

With this caution in mind, working between Design view and XAML view can be an effective method for learning the basics of XAML.

To see more detailed information about parsing errors, view the Errors tab in the Results panel, as shown in the following image:

Errors tab of the Results panel, with errors displayed

Cc294776.cb92406f-c53a-4164-ba89-aa4bad057ad7(en-us,Expression.40).png

The Errors tab (identified by Cc294776.25182a96-9a69-478a-9cfe-5b360e6a9bea(en-us,Expression.40).png) displays the description, file name, line number, column number, and project name Cc294776.05fe4b1d-f584-4bd2-99b6-8bc2d735a89d(en-us,Expression.40).png for each error in the list of XAML errors Cc294776.f0c1ff71-7814-42ba-806b-7ea92d616e69(en-us,Expression.40).png that the parser finds in your document. You can use the Go To command on the Edit menu to quickly locate a specific line in the XAML. After you fix the errors in your document, the Errors tab will be cleared and you can view the updated document on the artboard in Design view.

For more information about debugging XAML, see the topic Debug Expression Blend applications in this User Guide. For the syntax of individual controls, see Control Library Cc294776.xtlink_newWindow(en-us,Expression.40).png on MSDN Cc294776.xtlink_newWindow(en-us,Expression.40).png, or search for XAML elements and attributes in the "Class Library" reference on MSDN.

For more information about XAML and Windows Presentation Foundation (WPF), see the XAML Overview Cc294776.xtlink_newWindow(en-us,Expression.40).png on MSDN Cc294776.xtlink_newWindow(en-us,Expression.40).png, or visit the Windows Developer Center Cc294776.xtlink_newWindow(en-us,Expression.40).png.

See also

Tasks

Debug Expression Blend applications in Visual Studio 2010

Concepts

Debug Expression Blend applications

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.