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.
results.
Name Description

Featured samples

BuildCast app sample
BuildCast

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.

UWP Quiz Game with Project Rome sample
Quiz Game

This UWP app sample, a pub-style trivia game, demonstrates the ability to create shared experiences with Project Rome—extending the app across devices connected proximally or via the cloud. The Remote Session API allows a device to host a session that is discoverable by other nearby devices. Host a quiz game or join an existing session, send messages to other participants, answer questions and see scores at the end.

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.

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

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.