WinUI 3 project templates supported by Windows Template Studio:
C# templates:
- App (WinUI 3 in Desktop)
- Class Library (WinUI 3 in Desktop)
C++ Templates:
- App (WinUI 3 in Desktop)
- Windows Runtime Component (WinUI 3)
We also offer the following item templates for C# and C++:
- Blank page
- Blank Window (Desktop)
- Custom Control
- Resource Dictionary
- Resources File
- User Control
WinUI 3 projects created with Windows Template Studio (aka WinTS) are intended as a starting point, and will require modification and extension before they're finished. This page explains common ways to extend what is generated for you.
The final generated code is the result of a project configuration (project type and design pattern) and a multiple template choice (pages and features). There are a few concepts to understand before start working on the generated code.
Windows Template Studio approaches WinUI 3 Desktop app creation using the following attribute sets to decide how to best generate your app. Below are descriptions of everything you can do.
Project types define the basic look and feel of your WinUI 3 Desktop app.
Project type | Description |
---|---|
Blank | This basic project is a blank canvas upon which to build your app. It provides no scaffolding and leaves everything up to you. |
Blank Advanced | It provides folder scaffolding creating the most important folders as Services, Styles, Views and ViewModels. It also provides a minimal set of styles, font sizes and thickness values that you can use to build you app style's. This project type also includes basic services for activation and navigation. On application startup, the navigation to the home page is performed with these services. |
Navigation Pane | This project includes a navigation pane (or 'hamburger menu') at the side of the screen, for navigation between pages. This style is popular in mobile apps but also works well on larger screens. The menu can be hidden when space is limited, or it isn't needed. The menu shows items with an icon and text. The menu can be entirely hidden, show just the icon, or show the icon and text. The user can choose to display the full menu at the touch of a button. The menu also adapts automatically to the size of the screen. |
MenuBar | The project includes a menu bar on top of the screen that gives access to the pages of the application. Menu Bars are used a lot in desktop applications like Outlook, Word or Visual Studio. The menu initially shows two entries, File and Views. Pages are added to the Views menu entry, Settings Page to the file entry. Once the project is created you can redistribute or create new menu entries as convenient. |
App Design patterns define the coding pattern that will be used across the project, tying your UI and code together. Windows Template Studio currently supports the following common patterns:
Design pattern | Description |
---|---|
MVVM Toolkit | The Microsoft.Toolkit.Mvvm package is a modern, fast, and modular MVVM library. It is part of the Windows Community Toolkit. |
Page | Description |
---|---|
Blank | This is the most basic page. A blank canvas to mold into whatever you wish. |
Content Grid | This page allows you to add custom items in the form of an Adaptive Grid. |
Data Grid | A page displaying a simple data grid. |
List Details | The list/details pattern has a list pane and a details pane for content. |
Settings | The settings page is the page where we recommend putting the configuration settings for your app. |
WebView | The web view page renders web content using the Microsoft Edge rendering engine. |
Feature | Description |
---|---|
Settings Storage | Setting storage helps simplify storing data inside your application data folder. |
Feature | Description |
---|---|
MSIX | Allows packages creation for side-loading or distribution via Microsoft Store. |
Feature | Description |
---|---|
Theme Selection | Adds theming support to your application. |