Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Edit a XAML file in XAML view

You can design your application visually in Design view of Microsoft Expression Blend, or you can design your application by writing XAML. Editing XAML is useful if you want to add XAML elements or attributes that do not appear in the Properties panel when in Design view. (For an example, see Synchronize the starting times of animation and media timelines.)

For information about how to create your application in Design view in Expression Blend, see Arranging objects, Drawing shapes and paths, Inserting 3D objects, and other related topics in this User Guide. For information about XAML, see the XAML Overview Cc294810.xtlink_newWindow(en-us,Expression.40).png on MSDN or visit the Windows Developer Center Cc294810.xtlink_newWindow(en-us,Expression.40).png.

To edit an Extensible Application Markup Language (XAML) file

  1. On the right side of the artboard, click XAML Cc294810.d62c8271-e5e5-4bfd-8aba-9f6f8f5b7a3d(en-us,Expression.40).png to switch to XAML view, or click Split Cc294810.5b79e600-984e-4f44-b8cd-6c1522832ad4(en-us,Expression.40).png tab to see both views.

  2. Make changes to the XAML as you want.

    If the syntax of your XAML has errors, they will be displayed in the Results panel underneath the artboard. You must resolve any errors before you can view your changes in Design view. For more information, see Handling errors.

  3. Click Design Cc294810.32be2832-9f81-4617-97e6-a4a3988a136c(en-us,Expression.40).png to switch to Design view to see your changes reflected on the artboard.

    tip noteTip

    We recommend that you have previous experience working with XAML before you begin to modify your Expression Blend projects in XAML view. Editing XAML directly may create 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.

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.