Windows Programming Samples
Explore a curated collection of code samples that demonstrate various Windows programming techniques and features. Download, build, and run these samples to accelerate your development.
Featured Sample Categories
-
Universal Windows Platform (UWP) Apps
Build modern, adaptive applications for all Windows 10/11 devices.
View UWP Samples -
Win32 & Desktop Applications
Develop robust, high-performance applications for the Windows desktop.
View Win32 Samples -
Windows Runtime (WinRT) Components
Create reusable components accessible from multiple languages and frameworks.
View WinRT Samples -
Graphics & Media
Samples showcasing DirectX, Media Foundation, and image processing.
View Graphics Samples -
Networking & Connectivity
Demonstrations of network protocols, sockets, and web services.
View Networking Samples
Popular Samples
-
C++ XAML Controls Gallery
A comprehensive showcase of all standard XAML controls available in UWP and WinUI.
Download -
C# File Explorer Clone
A basic implementation of Windows File Explorer to understand file system navigation.
Download -
C++ DirectX 12 Rendering
A foundational sample for 3D rendering using the latest DirectX API.
Download
How to Use These Samples
Each sample typically includes:
.slnfiles for Visual Studio solutions.Source code files (e.g.,
.cpp,.xaml,.cs).Build scripts and instructions.
README files with detailed explanations and prerequisites.
We recommend using the latest version of Visual Studio with the appropriate Windows development workloads installed.