Getting Started with Uno Toolkit

Uno Toolkit Library

The Uno Toolkit library is available as NuGet packages that can be added to any new or existing Uno solution.

This article is a guide for installing the base Uno Toolkit library, additional steps are needed when installing the Toolkit support libraries for Uno Material and Uno Cupertino. Most controls within the base Uno Toolkit library are not designed to be used without an underlying design system installed. Refer to the following guides for Material/Cupertino support:


Creating a new project with Uno Toolkit

  1. Follow the steps in the Getting Started with Visual Studio instructions to launch the Uno Platform Template Wizard.

  2. Select Toolkit under the Features section.

    Toolkit selection in the Uno Platform Template Wizard

Installing Uno Toolkit in an existing project

Depending on the type of project template that the Uno Platform application was created with, follow the instructions below to install Uno Toolkit.

  1. Edit your project file (PROJECT_NAME.csproj) and add Toolkit to the list of UnoFeatures:

  2. Initialize ToolkitResources in the App.xaml:

                <!-- Code omitted of brevity -->
                <ToolkitResources xmlns="using:Uno.Toolkit.UI" />

If you are using the Uno.Toolkit.WinUI.Material or Uno.Toolkit.WinUI.Cupertino NuGet packages, follow the steps in the Getting Started with Material for Toolkit or Getting Started with Cupertino for Toolkit guides instead as they already include the base Uno Toolkit library.

Using C# Markup

The Uno Toolkit library also has support for C# Markup through a Uno.Toolkit.WinUI.Markup NuGet Package.

To get started with Uno Toolkit in your C# Markup application, add the Uno.Toolkit.WinUI.Markup NuGet package to your application project and add the following code to your App.cs:

using Uno.Toolkit.UI.Markup;

this.Build(r => r.UseToolkit());

If you are using the Uno.Toolkit.WinUI.Material.Markup NuGet package, follow the steps in the Using C# Markup for the Material Toolkit guide instead as it includes the base Uno Toolkit Markup library.