This repo contains the samples that demonstrate the API usage patterns for the Universal Windows Platform (UWP) in the Windows Software Development Kit (SDK) for Windows 10. These code samples were created with the Universal Windows Platform templates available in Visual Studio, and are designed to run on desktop, mobile, and future devices that support the Universal Windows Platform.
Note: If you are unfamiliar with Git and GitHub, you can download the entire collection as a ZIP file, but be sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, the samples collection, and GitHub, see Get the UWP samples from GitHub. For more samples, see the Samples portal on the Windows Dev Center.
These samples require Visual Studio and the Windows Software Development Kit (SDK) for Windows 10.
Additionally, to stay on top of the latest updates to Windows and the development tools, become a Windows Insider by joining the Windows Insider Program.
The easiest way to use these samples without using Git is to download the zip file containing the current version (using the following link or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in Visual Studio.
- Before you unzip the archive, right-click it, select Properties, and then select Unblock.
- Be sure to unzip the entire archive, and not just individual samples. The samples all depend on the SharedContent folder in the archive.
- In Visual Studio, the platform target defaults to ARM, so be sure to change that to x64 or x86 if you want to test on a non-ARM device.
The samples use Linked files in Visual Studio to reduce duplication of common files, including sample template files and image assets. These common files are stored in the SharedContent folder at the root of the repository, and are referred to in the project files using links.
Reminder: If you unzip individual samples, they will not build due to references to other portions of the ZIP file that were not unzipped. You must unzip the entire archive if you intend to build the samples.
For more info about the programming models, platforms, languages, and APIs demonstrated in these samples, please refer to the guidance, tutorials, and reference topics provided in the Windows 10 documentation available in the Windows Developer Center. These samples are provided as-is in order to indicate or demonstrate the functionality of the programming models and feature APIs for Windows.
These samples are direct from the feature teams and we welcome your input on issues and suggestions for new samples. At this time we are not accepting new samples from the public, but check back here as we evolve our contribution model.
For additional Windows samples, see Windows on GitHub.
|App package information
|Bluetooth RFCOMM chat
|SMS send and receive
|Low latency input
|Touch keyboard text input
|Serializing and deserializing data
|Jump list customization
|Sharing content source app
|Sharing content target app
|File and folder thumbnail
|File picker provider
|Semantic text query
|DirectX and XAML game
|Animated GIF playback (XAML)
|Composition visual without framework
|Direct2D advanced color image rendering
|Direct2D custom image effects
|Direct2D gradient mesh
|Direct2D SVG image rendering
|Holographic face tracking
|Holographic mixed reality capture
|Holographic spatial mapping
|Holographic spatial stage
|Holographic voice input
|Spatial interaction source
|Mixed Reality Model
|Suspend and resume
|In-process component authoring
|In-process component authoring
|Out-of-process component authoring
|Version adaptive code
|Cortana voice command
|Speech recognition and synthesis