Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
W

Windows-universal-samples

> 编程语言
Open source

API samples for the Universal Windows Platform.

9.7K stars0 likes1 views
WebsiteGitHub

About

API samples for the Universal Windows Platform.

# Universal Windows Platform (UWP) app samples 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](https://github.com/Microsoft/Windows-universal-samples/archive/main.zip), 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](https://aka.ms/ovu2uq). > For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. ## Universal Windows Platform development These samples require Visual Studio and the Windows Software Development Kit (SDK) for Windows 10. [Get a free copy of Visual Studio Community Edition with support for building Universal Windows Platform apps](http://go.microsoft.com/fwlink/p/?LinkID=280676) 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. [Become a Windows Insider](https://insider.windows.com/) ## Using the samples 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. [Download the samples ZIP](../../archive/main.zip) **Notes:** * 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](http://go.microsoft.com/fwlink/p/?LinkID=532421). These samples are provided as-is in order to indicate or demonstrate the functionality of the programming models and feature APIs for Windows. ## Contributions 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. This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments. ## See also For additional Windows samples, see [Windows on GitHub](http://microsoft.github.io/windows/). ## Samples by category ### App settings
App package information Application data Store
### Audio, video, and camera
360-degree video playback Adaptive streaming Advanced capture
Advanced casting Audio categories Audio graphs
Background media playback Basic camera app Basic face detection
Basic face tracking Basic media casting Camera face detection
Camera frames Camera preview frame Camera profiles
Camera resolution Camera stream coordinate mapper Camera stream correlation
DASH streaming Direct2D photo adjustment Media editing
Media import Media transport controls MIDI
Playlists PlayReady Processing frames with OpenCV
Simple imaging Spatial audio System media transport controls
Transcoding media Video playback Video playback synchronization
Video stabilization Windows audio session (WASAPI)
### Communications
Bluetooth RFCOMM chat Real-time communication SMS send and receive
### Contacts and calendar
Appointment calendar Contact cards Contact panel
Contact picker UserDataAccountManager
### Controls, layout, and text
3D Printing 3D Printing from Unity Bottom-up list (XAML)
Clipboard Colored glyphs (DirectWrite) Commanding
Context menu Context menu (XAML) Custom text edit control
Data virtualization Display orientation Downloadable fonts (DirectWrite)
Downloadable fonts (XAML) Drag and drop Focus visuals
Full screen mode Gamepad-style navigation (XAML) Line spacing (DirectWrite)
ListView and GridView Lock screen apps Message dialog
Multiple views OCR Printing
Scaling according to DPI Secondary windows Splash screen
State triggers Tailored multiple views Title bar
UI basics (XAML) User interaction mode WebView control (XAML)
Window resizing
### Custom user interactions
Basic input Complex inking Ink analysis
Low latency input Pen haptics Simple inking
Touch keyboard Touch keyboard text input
### Data
Compression Content indexer Logging
PDF document Serializing and deserializing data x:Bind
x:DeferLoadStrategy XML DOM XmlLite
### Deep links and app-to-app communication
App services Jump list customization Remote systems
Sharing content source app Sharing content target app User activities
### Devices, sensors, and power
Accelerometer Activity detection sensor Altimeter
Background sensors

Issues· 154 open

View all issuesOpen on GitHub
  • #1426

    Invoke a quicklink to a share target

    suggestionUpdated Sep 27, 2026
  • #1433

    Inconsistent UWP DateTimeFormatter output for similar patterns with en-US culture

    bugUpdated Sep 27, 2026
  • #1422

    WASAPICapture Initializes the client in a manner that disregards the rules in the API docs

    bugUpdated Sep 25, 2026
  • #1442

    Why add x:Class="SDKTemplate.Styles in Windows-universal-samples\SharedContent\\xaml\Styles.xaml? It cause build fail.

    bugUpdated Sep 24, 2026
  • #1424

    D2DAdvancedColorImages colour reproduction issue

    suggestionUpdated Sep 23, 2026
  • #1435

    "internetClientServer" and "privateNetworkClientServer" don’t work on Xbox.

    bugUpdated Sep 15, 2026
  • #1437

    Custom ShareProvider does not show in share panel

    bugUpdated Sep 8, 2026
  • #1445

    The events speechRecognizer.ContinuousRecognitionSession.ResultGenerated and speechRecognizer.HypothesisGenerated do no longer work

    bugUpdated Aug 26, 2026
  • #1440

    BluetoothAdvertisement files missing

    bugUpdated Aug 25, 2026
  • #1420

    WiFiDirect example can't discovery my android WifiDirect

    bugUpdated Aug 18, 2026

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言