Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

33 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 informationApplication dataStore

Audio, video, and camera

Adaptive streamingAdvanced castingAudio categories
Audio graphsBackground audioBasic camera app
Basic face detectionBasic face trackingBasic media casting
Camera face detectionCamera preview frameCamera profiles
Camera resolutionDASH streamingDirect2D photo adjustment
High dynamic rangeMedia editingMedia transport controls
MIDIPlaylistsSimple imaging
Spatial audioSystem media transport controlsTranscoding media
Video playbackVideo stabilizationWindows audio session (WASAPI)
Windows media import

Communications

Bluetooth RFCOMM chatCaller IDCommunication blocking and filtering
Phone callReal-time communicationSMS send and receive
Voice over IP (VoIP)

Contacts and calendar

Appointment calendarContact cardsContact picker
UserDataAccountManager

Controls, layout, and text

3D Printing3D Printing from UnityAutoSuggestBox migration
ClipboardCommandingContext menu
Context menu (XAML)Data virtualizationDisabling selection
Display orientationDownloadable fonts (DirectWrite)Downloadable fonts (XAML)
Drag and dropFocus visualsFull screen mode
Line spacing (DirectWrite)ListView and GridViewLock screen apps
Message dialogMultiple viewsOCR
PrintingPull-to-refreshResponsiveness techniques
Scaling according to DPISplash screenState triggers
Tailored multiple viewsTitle barUI basics (XAML)
User interaction modeWebView control (HTML)WebView control (XAML)
Window resizing

Custom user interactions

Basic inputComplex inkingInking
Low latency inputSimple inkingTouch keyboard
Touch keyboard text input

Data

BlobsCompressionContent indexer
Form validation (HTML)IndexedDBLogging
PDF documentSerializing and deserializing datax:Bind
x:DeferLoadStrategyXML DOMXmlLite

Deep links and app-to-app communication

App servicesJump list customizationSharing content source app
Sharing content target app

Devices and sensors

AccelerometerActivity detection sensorAllJoyn consumer experiences
AllJoyn producer experiencesAltimeterBackground sensors
Barcode scannerBarometerBluetooth advertisement
Cash drawerCompassCustom HID device
Custom sensorsCustom serial deviceCustom USB device
Device enumeration and pairingGeneral Purpose Input/Output (GPIO)Gyrometer
InclinometerInter-Integrated Circuit (I2C)Lamp device
Light sensorMagnetic stripe readerNear field communication (NFC)
NFC enterprise provisionerOrientation sensorPedometer
POS printerProximity sensorRelative inclinometer
Relative orientation sensorSerial ArduinoSerial Peripheral Interface (SPI)
Simple orientation sensor

Files, folders, and libraries

File accessFile and folder thumbnailFile picker
File picker providerFile searchFolder enumeration
HomeGroupLibrary managementSemantic text query

Gaming

Direct3D gameDirectX and XAML game

Globalization and localization

Application resources and localizationCalendarDate and time formatting
Globalization preferencesJapanese phonetic analysisLanguage font mapping
Linguistic servicesNumber formatting and parsingText segmentation
Text suggestionsUnicode string processing

Graphics and animation

Animated GIF playback (XAML)Animation library (HTML)Animation metrics
Composition visual without frameworkDirect2D custom image effectsDirect2D gradient mesh
Efficient animations (HTML)Transform3D animationsTransform3D parallax

Holographic

Holographic spatial mapping

Identity, security, and encryption

Credential lockerClient Device InformationCredential picker
Device lockdown with Azure loginDisabling screen captureEnterprise data protection
KeyCredentialManagerLock screen personalizationMicrosoft Passport and Windows Hello
Smart cardsUser informationUserConsentVerifier
Web account managementWebAuthenticationBroker

Launching and background tasks

Association launchingBackground taskExtended execution
Suspend and resume

Maps and location

GeolocationGeotagMapControl

Navigation

Back ButtonMaster/detailNavigation menu (XAML)
PivotProjectionXHR, handling navigation errors, and URL schemes

Networking and web services

AdvertisingBackground transferDatagramSocket
HttpClientJSONMobile broadband
RadiosRSS reader end-to-end (JavaScript)Socket activity trigger stream socket
StreamSocketSyndicationUSSD protocol
WebSocketWi-Fi DirectWi-Fi Direct services
Wi-Fi scanning

Platform architecture

In-process component authoringIn-process component authoringOut-of-process component authoring

Speech and Cortana

Cortana voice commandSpeech recognition and synthesis

Threading

JavaScript Web Workers app multithreading

Tiles, toasts, and notifications

NotificationsSecondary tiles

About

API samples for the Universal Windows Platform.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages