Get UWP app samples
The Universal Windows Platform (UWP) app samples are available through repositories on GitHub. See Samples for a searchable, categorized list, or browse the
repository, which contains samples that demonstrate all of the UWP features
and their API usage patterns.
Download the code
The zip file will always have the latest samples. You don’t need a GitHub account to download it. When an SDK update is released or if you want to pick up any recent changes/additions, just check back for the latest zip file.
The UWP samples require Visual Studio 2015 or later and the Windows SDK to open, build, and run. You can get a free copy of Visual Studio Community with support for building UWP apps here.
Also, be sure to unzip the entire archive, and not just individual samples. The samples all depend on the SharedContent folder in the archive. The UWP feature 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.
After you download the zip file, open the samples in Visual Studio:
Before you unzip the archive, right-click it, select Properties > Unblock > Apply. Then, unzip the archive to a local folder on your machine.
Within the samples folder, you’ll see a number of folders, each of which contains a UWP feature sample.
Select a sample, such as Altimeter, and you’ll see multiple folders indicating the languages supported.
Select the language you’d like to use, such as CS for C#, and you’ll see a Visual Studio solution file, which you can open in Visual Studio.
Give feedback, ask questions, and report issues
If you have problems or questions, just use the Issues tab on the repository to create a new issue and we’ll do what we can to help.
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.