Get the Universal Windows Platform (UWP) samples from GitHub
The UWP app samples are available through repositories on GitHub. If this is your first time working with UWP, you'll want to start with the
repository, which contains samples that demonstrate all of the UWP features
and their API usage patterns.
Additional samples can be found using the Samples section of the Dev Center.
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.
Note: The UWP samples require Visual Studio 2015 and the Windows SDK to open, build, and run. If you don’t have Visual Studio already installed, you can get a free copy of Visual Studio 2015 Community Edition 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.