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 apps.
Foundational samples

Learn to use the features and capabilities of the Universal Windows Platform (UWP).

Showcase samples

Polished end-to-end apps that demonstrate complex scenarios and designs.

Playful samples

See ways to use features of the Universal Windows Platform to create experiences that are just plain cool.

Other Microsoft samples

Combine the Universal Windows Platform with other great Microsoft offerings to create even more powerful apps.

Featured samples

A UWP app sample that demonstrates real-world social media experiences around photo sharing.

A UWP app sample for retrieving RSS feeds and viewing articles, demonstrating adaptive layout and hierarchical navigation patterns.

Explore the lighter side of Windows app development with some exciting projects from Coding4Fun.

Foundational samples

UWP feature samples

UWP app samples for Windows 10 that demonstrate the API usage patterns. They are the best starting point for learning the UWP.

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 10 samples for IoT

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

DirectX 12 Graphics Samples

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

Windows game samples

Download and explore samples that demonstrate game programming techniques and technologies. These Windows samples will get you started developing games with DirectX, XAML, or HTML5.

UWP mini-app samples

Mini-app samples that demonstrate multiple UWP features working together. These samples represent small, but fully-functional apps.

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.

Showcase samples

A UWP app sample that demonstrates real-world social media experiences around photo sharing.

Playful samples

Samples for exploring the lighter side of Windows 10 app development.

Sample projects for the Windows Maker in all of us.

Other Microsoft samples

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.

Windows 10 driver samples

Driver samples for use with Visual Studio and the Windows Driver Kit (WDK). Many of these driver samples have been updated to be universal, which means they call only interfaces that are part of Windows Core, or OneCoreUAP.

Windows Driver Frameworks

Source code for the Windows Driver Frameworks (WDF), which is a set of libraries that make it simple to write high-quality device drivers.

Microsoft Azure code samples

Interested in development with Azure services?

Windows Library for JavaScript (WinJS)

WinJS is a UI toolkit for modern browsers, providing the controls you need to make your app professional, functional and easy-to-use - all in one place.

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.

Office 365 code samples

Interested in integrating Office 365 data and services into your app?

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