Repolode
microsoft

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. 1

    Clone the repository with Git

    git clone https://github.com/microsoft/WindowsAppSDK-Samples.git
  2. 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

#windows#winui#windows-app-sdk#desktop#csharp#cpp#samples#window-11#windows-10#windowsappsdk

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