WinUI is Microsoft's UI layer of modern controls and styles for building Windows desktop apps, with WinUI 3 shipping in the Windows App SDK.
microsoft/WindowsAppSDK-Samples
A collection of feature samples for Microsoft's Windows App SDK, covering WinUI 3, AI, notifications, windowing and more.
- Stars
- 1,025
- Forks
- 336
- Open issues
- 98
- Last commit
- 3 days ago
What is it?
This repository hosts sample projects for the Windows App SDK, Microsoft's framework for building Windows desktop apps. Each sample focuses on a single feature, such as app lifecycle and instancing, storage pickers, Mica backdrops, push notifications, camera capture, printing, or widgets, so developers can see how an API is used in a working app.
The samples are grouped by area, including Artificial Intelligence (Windows AI APIs and Windows ML), App Lifecycle, Deployment, Graphics, Media, Notifications, and User Interface and Input. Most samples target WinUI 3 and are written in C# or C++, with some Python examples for Windows ML. They require Windows 10 version 1809 or later and Visual Studio 2022 with the .NET and C++ desktop workloads.
The main branch tracks the latest stable Windows App SDK release, while experimental and version-specific stable branches cover other releases.
Key features
- 01Covers WinUI 3 samples in C# and C++, plus Python for Windows ML
- 02Includes AI samples for Windows AI APIs such as Phi Silica and OCR
- 03Demonstrates app instancing, activation, and power state notifications
- 04Shows storage pickers, printing, camera capture, and Mica backdrops
- 05Provides version-specific branches for stable and experimental APIs
Use cases
- Learning how to add a specific Windows App SDK feature to a WinUI 3 app
- Looking up working code for Windows ML or Windows AI API integration
- Using the Mica, focus visual, or input samples as a starting template for a desktop app
Quick start
- 1
Clone the repository with Git
git clone https://github.com/microsoft/WindowsAppSDK-Samples.git - 2
Open the solution file of a sample in Visual Studio
Things to know
- Windows only; requires Visual Studio with Windows application development workloads.
- Samples are a collection of separate projects rather than one runnable application.
In collections
Topics
FAQ
- What is WindowsAppSDK-Samples?
- A collection of feature samples for Microsoft's Windows App SDK, covering WinUI 3, AI, notifications, windowing and more. This repository hosts sample projects for the Windows App SDK, Microsoft's framework for building Windows desktop apps. Each sample focuses on a single feature, such as app lifecycle and instancing, storage pickers, Mica backdrops, push notifications, camera capture, printing, or widgets, so developers can see how an API is used in a working app.
- Is WindowsAppSDK-Samples free to use? What license does it have?
- WindowsAppSDK-Samples is open source under the MIT license. Check the license terms before using it in commercial products.
- Is WindowsAppSDK-Samples still maintained?
- Actively maintained. The last commit to WindowsAppSDK-Samples was on Nov 3, 2026.
- What can I use WindowsAppSDK-Samples for?
- Learning how to add a specific Windows App SDK feature to a WinUI 3 app Looking up working code for Windows ML or Windows AI API integration Using the Mica, focus visual, or input samples as a starting template for a desktop app
- How do I install WindowsAppSDK-Samples?
- Clone the repository with Git: git clone https://github.com/microsoft/WindowsAppSDK-Samples.git Open the solution file of a sample in Visual Studio
- Where can I get WindowsAppSDK-Samples?
- The source code and installation instructions are on GitHub: https://github.com/microsoft/WindowsAppSDK-Samples
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Free, open-source Windows app for setting animated wallpapers, web pages, games and screensavers on the desktop, built with WinUI 3.
Fluent-style themes and WinUI-inspired controls for WPF desktop applications on Windows.
Windows port of macOS Mojave's Dynamic Desktop, changing your wallpaper and lock screen image through the day as the sun moves.
A collection of official sample apps built with .NET MAUI, covering AI chat, navigation, layouts and native platform features.
A desktop Swiss Army knife for developers, bundling about 30 small tools for encoding, formatting, converting, testing and generating data.