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.
The Rename refactoring can be applied to change the name of the resource:
Also it works for any other symbol:
For more information about the refactoring, see Rename.
Using ReSharper you can safely delete symbols right from XAML:
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.
Extract XAML Style
To create a new style based on existing properties and their values, use the Extract XAML Style refactoring.
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.
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.
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.
If no conflicts are found, ReSharper adds a new resource. Otherwise, ReSharper prompts you to resolve conflicts.