This page is targeted at users who are looking for Windows development samples that demonstrate specific tasks, features, and API usage patterns.
The samples in this document demonstrate features from Windows App SDK / WinUI 3, UWP / WinUI 2, .NET MAUI, and more. See our Samples Browser for a more extensive catalog of samples.
Most of the samples identified in this document contain Solution (.sln) files that can be opened in Visual Studio. Refer to each resource's Readme for additional instructions.
Determine application instancing behavior. App instancing APIs control whether or not users can run multiple instances of your application at the same time.
.NET MAUI is a cross-platform framework for creating mobile and desktop apps with C# and XAML. Using .NET MAUI, you can develop apps that can run on Android, iOS, iPadOS, macOS, and Windows from a single shared codebase. These are also available in the Samples browser.
Use a .NET Shell app to reduce complexity, reuse code, and integrate existing Windows functionality (such as URI navigation and integrated search bars) into your app.
Contains sample apps that demonstrate the core application activation and lifecycle management infrastructure of various platforms such as the Universal Windows Platform (UWP), Windows Forms (WinForms), and console.
Demonstrates the Desktop Conversion Extensions for converting desktop apps (such as Win32, Windows Presentation Foundation, and Windows Forms) and games to UWP apps and games.
A collection of helper functions, custom controls, and app services. It simplifies and demonstrates common developer tasks when building apps for Windows.
Ready-to-use snippets of code that accomplish small but useful tasks of interest to UWP app developers. These snippets show simple solutions to common problems, and simple recipes to help you implement new app features.
Win2D is an easy-to-use Windows Runtime (WinRT) API for immediate-mode 2D graphics rendering with GPU acceleration. It's available to C# and C++ developers, and it utilizes the power of Direct2D, integrating seamlessly with XAML and CoreWindow.