ReSharper 8.0 Web Help

Most of the standard refactorings that ReSharper provides for other languages are available in XAML as well. For more information about them and how they can be applied, see Refactorings.

You can find a couple of examples below.

Rename

The Rename refactoring can be applied to change the name of the resource:

ReSharper_by_Language__XAML__Refactorings__Rename_01

Also it works for any other symbol:

ReSharper_by_Language__XAML__Refactorings__Rename_02

For more information about the refactoring, see Rename.

Safe Delete

Using ReSharper you can safely delete symbols right from XAML:

ReSharper_by_Language__XAML__Refactorings__Safe_Delete_01

For more information about the refactoring, see Safe Delete.

Move to Resource

Using ReSharper you can easily work with resources in XAML. For example, you can move a string to a resource file using the Move refactoring.

ReSharper_by_Language__XAML__Refactorings__Move_to_Resource_01

Extract XAML Style

To create a new style based on existing properties and their values, use the Extract XAML Style refactoring.

ReSharper_by_Language__XAML__Refactorings__Extract_Style_01

The Extract XAML Style dialog box opens, where you can specify whether to create a new style or use an existing one as well as specify what properties to extract.
ReSharper_by_Language__XAML__Refactorings__Extract_Style_02
If no conflicts are found, ReSharper creates a new style. Otherwise, ReSharper prompts you to resolve conflicts.

Extract XAML Resource

If some values are repeatedly used, it makes sense to move such values to resources and replace all their occurrences with resource references. To do this, apply the Extract XAML Resource refactoring.
ReSharper_by_Language__XAML__Refactorings__Extract_Resource_01
The Extract XAML Resource dialog box opens, where you can specify the name for a new resource, the visibility scope, and whether the resource is referenced statically or dynamically.
ReSharper_by_Language__XAML__Refactorings__Extract_Resource_02
If no conflicts are found, ReSharper adds a new resource. Otherwise, ReSharper prompts you to resolve conflicts.