Uno Simple Toolkit Library
UnoFeatures: Toolkit;SimpleTheme (add to <UnoFeatures> in your .csproj)
The Uno Simple Toolkit provides a set of resources and styles based on the Uno Simple design system for the controls included in the base Uno Toolkit library
Getting Started
Initialization of the Simple Toolkit resources is handled by the specialized SimpleToolkitTheme ResourceDictionary.
SimpleToolkitTheme
Note
The SimpleToolkitTheme class also handles the required initialization of the Uno Simple resources. Therefore, there is no need to initialize SimpleTheme within the App.xaml
Constructors
| Constructor | Description |
|---|---|
SimpleToolkitTheme() |
Initializes a new instance of the SimpleToolkitTheme resource dictionary. |
SimpleToolkitTheme(ResourceDictionary? colorOverride, ResourceDictionary? fontOverride) |
Initializes a new instance of the SimpleToolkitTheme resource dictionary and applies the given overrides |
Properties
SimpleToolkitTheme inherits its configuration from Uno Themes. Refer to Uno Simple customization and the shared theme property reference.
Installation
Note
Make sure to setup your environment first by following our instructions.
Creating a new project with the Uno Simple Toolkit
- Follow the steps in the Getting Started with Visual Studio instructions to launch the Uno Platform Template Wizard.
- Select
Simpleunder theThemesection. - Select
Toolkitunder theFeaturessection.
Installing Uno Simple 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 the Uno Simple Toolkit.
- Single Project Template
- Multi-Head Project Template (Legacy)
- Shared Project (.shproj) Template (Legacy)
Edit your project file (
PROJECT_NAME.csproj) and addToolkitandSimpleThemeto the list ofUnoFeatures:<UnoFeatures>Toolkit;SimpleTheme</UnoFeatures>Initialize
SimpleToolkitThemein theApp.xaml:<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <!-- Code omitted of brevity --> <SimpleToolkitTheme xmlns="using:Uno.Toolkit.UI.Simple" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources>
Customization
Apply the properties shown in Uno Themes examples directly to SimpleToolkitTheme. It initializes the underlying theme and Toolkit resources, so do not add a separate SimpleTheme.
Customize Colors
Follow the Uno Simple color override guide, using SimpleToolkitTheme as the theme dictionary.
Customize Fonts
Follow the Uno Themes typography guide and Uno Simple font guide.
Toolkit control-specific aliases such as NavigationBarFontFamily and DividerSubHeaderFontFamily retain their own override keys; DefaultFontFamily does not regenerate these aliases. See NavigationBar styling and Divider styling.
Customize Default Density
Follow the Uno Themes guides for spacing and density. Fixed Toolkit padding and margins remain independent of the generated spacing scale.
Customize Default Corner Radius
Follow the Uno Themes shape customization guide.
Seed Color Customization
Follow the Uno Themes seed color guide, using the Toolkit theme in its examples.