Custom XAML Analyzers

Create your own analyzers to check that the controls in your XAML files are used the way you want and need them to be.

Custom warnings displayed for a custom XAML control

If you say how an issue should be addressed, integration with Visual Studio handles display actions and making changes to the document.

List of Quick Actions displayed in the Visual Studio XAML editor

There are full details on creating custom analyzers on GitHub.

This functionality is provided through a NuGet package that must be referenced separately to installing the toolkit.

To make use of your custom analyzers, you need the XAML Analysis tool installed which you get as part of the Toolkit. Project and item templates also exist to make authoring custom analyzers easy.

XAML Analysis  |  Custom XAML Analyzers  |  XAML Generation  |  Editor Extras  |  Roslyn Analyzers  |  Project and Item Templates  |  Common functionality