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 desktop apps.

query category language platform
results for . Reset.
Name Description

Featured samples

Shopping Cart app sample
Shopping Cart

A UWP mini-app sample that demonstrates shopping for and purchasing an emoji using the Payment Request APIs and a basic multi-page XAML UI with a Model-View-ViewModel (MVVM) pattern.

Annotated Audio app sample
Annotated Audio

A UWP app sample that demonstrates audio, ink, and OneDrive data roaming scenarios.

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 Windows Store enterprise app.

UWP App Experiences code sample screenshot
UWP App Experiences

Beautiful, cross device, open source app samples built to demonstrate realistic app scenarios on the UWP platform across desktop, Xbox, mobile, and more. post and short overview video.

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.

UWP community toolkit

The UWP Community Toolkit is a collection of helper functions, custom controls, and app services. It simplifies and demonstrates common developer tasks building UWP 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.

Didn’t find what you wanted? Tell us what samples you would like on UserVoice.

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