Export (0) Print
Expand All

Modify a resource

This page applies to WPF and Silverlight 2

  • In the Resources panel, do one of the following:

    • If editing a style resource, double-click the resource or click the Edit Resource button.

      Expression Blend enters the editing mode for the style, within the document where the resource is defined (in the current document, the App.xaml file if the resource is defined at the application level, or in the resource dictionary file if the resource is defined in a resource dictionary.)

    • If editing a color or brush resource, click the color chip to view of the pop-up color or brush editor.

If a property already refers to a resource, you can edit that resource from the Properties panel.

  • In the Properties panel, click the Advanced property options Cc374994.d6ba8f4a-b8a2-445a-af0b-a267dfade6e1(en-us,Expression.10).png marker beside the property that references the resource that you want to modify, and then click Edit Resource on the pop-up menu.

    • If the resource is a style, Expression Blend enters the editing mode for the style within the document where the resource is defined (in the current document, in the App.xaml file if the resource is defined at the application level, or in the resource dictionary file if the resource is defined in a resource dictionary.)

    • If the resource is a color or a brush, the Edit Resource dialog box appears.

Cc374994.alert_note(en-us,Expression.10).gifNote:

If you want to edit a control template, you can get to the template from the editing scope of the style by right-clicking the Style node under Objects and Timeline, pointing to Edit Control Parts (Template), and then clicking Edit Template. Control templates are wrapped in style resources in order to make them easier to manage. For more information about editing styles and templates, see Edit a style and Create or edit a control template.

Cc374994.alert_note(en-us,Expression.10).gifNote:

After you modify a resource, any element that references the resource will display the changes that you've made to the values of the resource.

Community Additions

ADD
Show:
© 2014 Microsoft