WindowsAppSDK-Samples  by microsoft

Windows App SDK samples for various features

Created 5 years ago
858 stars

Top 41.8% on SourcePulse

GitHubView on GitHub
Project Summary

This repository provides a comprehensive collection of feature samples for the Windows App SDK, targeting developers building modern Windows applications. It offers practical examples for integrating various SDK capabilities, from AI and app lifecycle management to UI elements and background tasks, enabling developers to quickly understand and implement new features.

How It Works

The repository is structured by feature area, with each sample demonstrating specific Windows App SDK APIs. It covers a wide range of functionalities, including AI integration with Windows Copilot Runtime, app lifecycle management (instancing, power notifications), background tasks, data and resource management, deployment options (MSIX, unpackaged), dynamic dependencies, graphics (Mica, DWriteCore), UI islands, notifications, custom controls, windowing, and widgets.

Quick Start & Requirements

  • Install: Clone the repository (git clone https://github.com/microsoft/WindowsAppSDK-Samples.git) or download as a ZIP. Open solution files in Visual Studio.
  • Prerequisites: Windows 10 version 1809 (build 17763) or later. Visual Studio 2022 or 2019 (v16.9+) with "Windows application development", ".NET Desktop Development", and "Desktop development with C++" workloads. Windows SDK version 19041 or later.
  • Links: Windows App SDK Documentation, Windows App SDK GitHub

Highlighted Details

  • Extensive coverage of Windows App SDK features, including AI, app lifecycle, UI, and background tasks.
  • Samples are updated with GA releases of the Windows App SDK, with specific release branches available (e.g., release/1.6).
  • Demonstrates integration with WinUI 3, custom WinRT components, and unpackaged applications.
  • Includes samples for Windows Widgets and Mica material effects.

Maintenance & Community

Samples are provided by feature teams. Feedback and suggestions are welcomed via GitHub issues. Follows the Microsoft Open Source Code of Conduct.

Licensing & Compatibility

The repository itself is not explicitly licensed in the README. However, the Windows App SDK is typically licensed under permissive terms allowing commercial use. Compatibility is focused on Windows 10 and later.

Limitations & Caveats

The main branch may contain experimental or preview features. Specific release branches are recommended for stability when targeting a particular Windows App SDK version.

Health Check
Last Commit

1 day ago

Responsiveness

1+ week

Pull Requests (30d)
12
Issues (30d)
3
Star History
12 stars in the last 30 days

Explore Similar Projects

Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Boris Cherny Boris Cherny(Creator of Claude Code; MTS at Anthropic), and
8 more.

screenpipe by mediar-ai

0.2%
16k
AI app store for desktop history
Created 1 year ago
Updated 2 weeks ago
Feedback? Help us improve.