Skip to content

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 are designed to run on both desktop, mobile and future devices that support the UWP.

License

Notifications You must be signed in to change notification settings

bearyung/Windows-universal-samples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Universal Windows 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 templates available in Visual Studio, and are designed to run on desktop, mobile, and future devices that support the Universal Windows Platform.

Universal Windows Platform development

These samples require Visual Studio 2015 and the Windows Software Development Kit (SDK) for Windows 10 to build, test, and deploy your Universal Windows apps.

Get a free copy of Visual Studio 2015 Community Edition with support for building Universal Windows apps

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

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 link below 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 2015.

Download the samples 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 2015, 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 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.

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.

See also

For additional Windows samples, see Windows on GitHub.

Samples by category

App settings
App package information Application data
Audio, video, and camera
Adaptive streaming Advanced casting Audio categories
Audio graphs Background audio Basic media casting
Camera face detection Camera preview frame High dynamic range
Camera profiles Basic camera app Video stabilization
Direct2D photo adjustment DASH streaming Media editing
Media transport controls MIDI Basic face detection
Basic face tracking Playlists Simple imaging
Spatial audio System media transport controls Transcoding media
Video playback Windows audio session (WASAPI) Windows media import
Communications
Phone call Real-time communication SMS send and receive
Voice over IP (VoIP)
Contacts and calendar
Appointment calendar Contact cards Contact picker
UserDataAccountManager
Controls, layout, and text
AutoSuggestBox migration Clipboard Context menu
Context menu (XAML) Display orientation Downloadable fonts (DirectWrite)
Drag and drop Line spacing (DirectWrite) Focus visuals
Full screen mode HTML WebView control ListView and GridView
Lock screen apps Message dialog Multiple views
OCR Printing Pull to refresh
Window resizing Scaling according to DPI Splash screen
State triggers Title bar Disabling selection
User interaction mode Commanding Downloadable fonts (XAML)
Responsiveness techniques Tailored multiple views XAML UI basics
Custom user interactions
Basic input Complex inking Inking
Low latency input Simple inking
Data
Compression Content indexer HTML5 form validation
IndexedDB Logging Serializing and deserializing data
Blobs x:Bind x:DeferLoadStrategy
XML DOM XmlLite
Deep links and app-to-app communication
App services Sharing content source app Sharing content target app
Devices and sensors
Accelerometer Activity detection sensor AllJoyn Consumer experiences
AllJoyn Producer experiences Altimeter Background sensors
Barcode scanner Barometer Bluetooth advertisement
Cash drawer Compass Custom HID device
Custom sensors Custom serial device Custom USB device
Device enumeration Inclinometer Lamp device
Gyrometer Magnetic stripe reader Near field communication (NFC)
Light sensor Orientation sensor Pedometer
NFC enterprise provisioner Proximity sensor Relative inclinometer
POS printer Serial Arduino Simple orientation sensor
Relative orientation sensor
Files, folders, and libraries
File access File and folder thumbnail File picker provider
File picker Folder enumeration HomeGroup
Library management File search Semantic text query
Gaming
Direct3D game DirectX and XAML game
Globalization and localization
Application resources and localization Date and time formatting Japanese phonetic analysis
Language font mapping Linguistic services Number formatting and parsing
Text segmentation Text suggestions Unicode string processing
Graphics and animation
Animated GIF (XAML) Animation library (HTML) Animation metrics
Direct2D custom image effects Direct2D gradient mesh Efficient animations (HTML)
Transform3D animations Transform3D parallax
Identity, security, and encryption
User information Credential locker Credential picker
Enterprise data protection KeyCredentialManager Lock screen personalization
Smart cards UserConsentVerifier Web account management
WebAuthenticationBroker
Launching and background tasks
Association launching Background task
Maps and location
Geolocation Geotag MapControl
Navigation
Back Button Master/detail Pivot
Projection XAML navigation menu XHR, handling navigation errors, and URL schemes
Networking and web services
Background transfer DatagramSocket Exchange Active Sync (EAS)
RSS reader end-to-end sample HttpClient JSON
Mobile broadband Radios Socket activity trigger stream socket
StreamSocket Syndication USSD protocol
WebSocket Wi-Fi Direct Wi-Fi Direct Services
Wi-Fi scanning XHR, handling navigation errors, and URL schemes
Platform architecture
In-process component authoring Out-of-process component authoring In-process component proxy/stub generation
Speech and Cortana
Cortana voice command Speech recognition and synthesis
Threading
JavaScript Web Workers app multithreading
Tiles, toasts, and notifications
Notifications Secondary tiles

About

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 are designed to run on both desktop, mobile and future devices that support the UWP.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 85.6%
  • CSS 9.9%
  • C++ 4.1%
  • Other 0.4%