Freigeben über


Modify a resource

To modify a resource using the Resources panel

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

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

      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.

To modify a resource using the Properties panel

  • In the Properties panel, click Advanced options JJ171033.12e06962-5d8a-480d-a837-e06b84c545bb(de-de,VS.110).png 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, 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.

HinweisHinweis

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 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 modify a template.

HinweisHinweis

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