Find and replace

You can use the Find feature in XAML view to locate a specific string in your XAML file.

For more information about XAML, see the XAML Overview Cc294970.xtlink_newWindow(en-us,Expression.40).png on MSDN or visit the Windows Developer Center Cc294970.xtlink_newWindow(en-us,Expression.40).png. For the syntax of individual controls, see Windows Presentation Foundation Control Library Cc294970.xtlink_newWindow(en-us,Expression.40).png or Silverlight Control Gallery Cc294970.xtlink_newWindow(en-us,Expression.40).png on MSDN.

To find and replace content in an Extensible Application Markup Language (XAML) file

  • With XAML view selected in Microsoft Expression Blend, click one of the following on the Edit menu:

    • Find   To locate a specific word, string, or item in the XAML and to customize your search.

    • ****Find Next   ****To find the next instance of a word, string, or item in the XAML. You can also press F3 to find the next instance.

    • Replace   To find a specific word, string, or item in the XAML and replace it with another word, string, or item.

    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.

    Tip

    You can make your search case-sensitive by selecting Match case in the Find or Replace dialog boxes, and you can also search up or down through the XAML file when you use Find.

See also

Tasks

View an object or resource in XAML

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