ReSharper Web Help

Syntax Highlighting

ReSharper highlights classes, fields, properties, events, etc. with different colors, so that they can be distinguished easily.

You can establish a custom color scheme. For more information, see Configuring Syntax Highlighting Fonts and Colors .

Code Highlighting

ReSharper detects various problems in XAML files, such as unresolved symbols, incorrect document structure, unused import directives, etc. Whenever a problem is encountered, ReSharper highlights it and displays some description in a tooltip. For more information about ways to find out why the code is highlighted, see Finding Out What is Wrong with Your Code .

In the example below, ReSharper warns that the namespace alias is not used inside the current file and highlights it in grey:

In the example below, ReSharper highlights a problem with resolving a method inside an event subscription:

Solution-Wide Analysis

ReSharper does not only analyze errors in the current XAML file, but also inspects all files in the whole solution and shows the results of the analysis in the Errors in Solution window. It takes dependencies between files into account and updates the results when you change code.


  • File Structure is a convenient tool for viewing the structure of the current document. You can also navigate to individual elements by double-clicking the corresponding node in the File Structure window.
  • Various "Go To..." features help you navigate to different parts of your XAML file or to other files in your solution. For instance, you can navigate to a usage of the element:

  • The Navigate To feature provides quick access to the list of various navigation features available in the current context. Using this feature, you can easily navigate between a XAML file and a corresponding code-behind file.


ReSharper can find usages of any entity, such as classes, properties, fields, etc. even in XAML. For instance, you can find usages of the FieldModifier class in order to find out which fields are declared as public:

Examples of Context Actions

Convert attribute to nested element
If you want to convert an attribute to a nested element, use this context action.

After applying this context action, the attribute is converted to a child tag with the same value, so that you can provide a more complex value for the property.

Convert tag to an attribute
If the value of a property is simple, there is no need to have it in a separate tag, so you can convert it to an attribute using this context action.

After applying this context action, the tag is converted to the attribute.

Examples of Quick-Fixes

Make field private
To change visibility of a field declared in XAML, use the appropriate quick-fix.

After applying the quick-fix, the value of FieldModifier is changed to private.

Remove redundant namespace alias
To remove a redundant namespace alias, use the appropriate quick-fix.

After applying the quick-fix, the namespace alias directive is removed.

See Also