Skip to content
Tools to accelerate XAML development.
C# PowerShell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Rapid XAML Toolkit

Build status License: MIT Works with Visual Studio 2019 AppVeyor tests

This is a collection of tools for making it easier for developers to work with XAML (UWP, WPF, and Xamarin.Forms). These tools fall into two categories

  • XAML Generation (making it easier to create a UI with XAML)
  • XAML Analysis (helping you find and fix issues with XAML)

❗️ BETA ❗️

Consider this project as in a beta stage. There's still lots to do before it is ready for a full release and there's more functionality we want to add but we're keen to get feedback as soon as possible and focus on the features people want.

Get the preview from the VS Marketplace

XAML Generation

Creating a XAML UI can be slow and require a lot of manual effort. These tools reduce the time and effort required to get the basics working, allowing more time to customize the UI to meet the specific needs of your app. We can't and don't try to create the whole app for you but we can make creating and working with XAML faster and easier. The generated XAML is based on common conventions but is highly configurable.

Go from this

public class OrderDetailsViewModel : ViewModelBase
    public int OrderId { get; private set; }
    public Guid CustomerId { get; set; }
    public DateTimeOffset OrderDate { get; set; }
    public string OrderNotes { get; set; }
    public decimal OrderTotal { get; }
    public ObservableCollection<OrderLineItem> Items { get; set; }

to this

    <TextBlock Text="{x:Bind ViewModel.OrderId}" />
    <TextBlock Text="{x:Bind ViewModel.CustomerId}" />
    <DatePicker Date="{x:Bind ViewModel.OrderDate, Mode=TwoWay}" />
    <TextBox Text="{x:Bind ViewModel.OrderNotes, Mode=TwoWay}" />
    <TextBlock Text="{x:Bind ViewModel.OrderTotal}" />
    <ListView ItemsSource="{x:Bind ViewModel.Items}">
            <DataTemplate x:DataType="OrderLineItem">
                    <TextBlock Text="{x:Bind OrderLineId}" />
                    <TextBlock Text="{x:Bind ItemId}" />
                    <TextBlock Text="{x:Bind ItemDescription}" />
                    <TextBlock Text="{x:Bind Quantity}" />
                    <TextBlock Text="{x:Bind UnitPrice}" />
                    <TextBlock Text="{x:Bind LineTotal}" />

in a couple of clicks.


The toolkit currently includes the following features

  • Create XAML by dragging a ViewModel file onto the designer.
  • Copy a property, selection of properties, or the whole class (from the ViewModel) into the clipboard and paste into the View as XAML.
  • Send a property, selection of properties, or the whole class (from the ViewModel) into the Toolbox and drag into the View as XAML.

Learn more about features.

XAML Analysis

Like Roslyn Analyzers do for C# and VB.Net, XAML Analyzers can identify potential issues in XAML files and create comments, warnings, or errors about the problems. They also provide Suggested Actions as ways to fix the issues.

Screenshot showing some of the issues analysis can find

Principles guiding this project

  • Doing something is better than doing nothing.
  • The toolkit can't generate the final XAML as every app requires unique customization.
  • Everything that is output should be configurable.
  • C# and VB.Net are supported equally.
  • The toolkit won't do things that Visual Studio can already do. (Without very good reason.)
  • This toolkit is focused specifically on tooling for working with XAML. It will not include controls, etc.


Please see our getting started guide.


Please see the contribution guide.


The Rapid XAML Toolkit (RXT) was started as a sister project to Windows Template Studio (WinTS).
It was oringinally created in partnership with Microsoft (that's why redirects here) but is now primarily cared for by Matt Lacey.

You can’t perform that action at this time.