Code samples

Learn how to build great apps for Windows by experimenting with our samples. These samples show you how features work and help you jumpstart your own Universal Windows Platform (UWP) and classic Windows applications.

query category language platform
results for . Reset.
Name Description

Featured samples

BuildCast app sample

An end-to-end sample showcasing the Microsoft Fluent Design System and UWP capabilities, including ink notes, bookmarks and remote playback. It permits browsing, download and playback of video podcasts, including Channel 9 and popular Windows tech enthusiast feeds. Originally discussed at the 2017 Build conference: “Build Amazing Apps with Fluent Design”.

Lunch Scheduler app sample
Lunch Scheduler

A UWP sample for scheduling lunch with friends and coworkers. Create a lunch, invite friends to a restaurant, and let the app manage the rest. Integrates with Facebook and Microsoft Graph–for authentication, user operations, and discovery of friends, Yelp and Bing–for maps and restaurant recommendations, and the Fluent Design System–for UWP styling like acrylic, reveal, and connected animations.

coloring book app
Coloring Book

A mini-app that demonstrates the versatility of Windows Ink (including the Windows Ink Toolbar) and radial controller (for Wheel devices such as the Surface Dial) features.

UWP Customer Order Database sample
UWP Customer Order Database sample

This code demonstrates a working customer order database hosted on Azure, implemented in C# and XAML, and ready to form the basis of your Microsoft Store enterprise app.

Other Microsoft samples

Windows task snippets

Snippets of ready-to-use 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.

Windows UI dev labs

This repo contains code samples, demos, experiments, prototypes, and preview explorations that show how to use Windows.UI.Xaml and Windows.UI.Composition to make beautiful UWP applications.

Windows 10 samples for IoT

Code samples to help you get started with developing for Windows on Devices.

Windows Community Toolkit

A collection of helper functions, custom controls, and app services. It simplifies and demonstrates common developer tasks when building apps for Windows 10.


Win2D is an easy-to-use Windows Runtime API for immediate mode 2D graphics rendering with GPU acceleration. It is available to C# and C++ developers, and utilizes the power of Direct2D, integrating seamlessly with XAML and CoreWindow.

DirectX 12 graphics samples

DirectX 12 Graphics samples that demonstrate how to build graphics intensive applications on Windows.

Windows desktop application samples

Desktop application code samples for examples of Win32 and .NET development. These samples cover a wide array of areas, ranging from networking to the UPnP framework.

Windows 8.1 app samples

Samples designed to run on Windows 8.1 and/or Windows Phone 8.1, and demonstrate the programming models, features, and components available in Windows 8.1.

Was this page helpful?
Additional feedback?
Thank you! We appreciate your feedback.