Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

API samples for the Universal Windows Platform.

License

NotificationsYou must be signed in to change notification settings

microsoft/Windows-universal-samples

Repository files navigation

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 aZIP file, but besure to unzip everything to access shared dependencies. For more info on working with the ZIP file,the samples collection, and GitHub, seeGet the UWP samples from GitHub.For more samples, see theSamples portal 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

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 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

Notes:

  • Before you unzip the archive, right-click it, selectProperties, and then selectUnblock.
  • 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 theWindows 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.

This project has adopted theMicrosoft Open Source Code of Conduct.For more information, see theCode of Conduct FAQor contactopencode@microsoft.com with any additional questions or comments.

See also

For additional Windows samples, seeWindows on GitHub.

Samples by category

App settings

App package informationApplication dataStore

Audio, video, and camera

360-degree video playbackAdaptive streamingAdvanced capture
Advanced castingAudio categoriesAudio graphs
Background media playbackBasic camera appBasic face detection
Basic face trackingBasic media castingCamera face detection
Camera framesCamera preview frameCamera profiles
Camera resolutionCamera stream coordinate mapperCamera stream correlation
DASH streamingDirect2D photo adjustmentMedia editing
Media importMedia transport controlsMIDI
PlaylistsPlayReadyProcessing frames with OpenCV
Simple imagingSpatial audioSystem media transport controls
Transcoding mediaVideo playbackVideo playback synchronization
Video stabilizationWindows audio session (WASAPI)

Communications

Bluetooth RFCOMM chatReal-time communicationSMS send and receive

Contacts and calendar

Appointment calendarContact cardsContact panel
Contact pickerUserDataAccountManager

Controls, layout, and text

3D Printing3D Printing from UnityBottom-up list (XAML)
ClipboardColored glyphs (DirectWrite)Commanding
Context menuContext menu (XAML)Custom text edit control
Data virtualizationDisplay orientationDownloadable fonts (DirectWrite)
Downloadable fonts (XAML)Drag and dropFocus visuals
Full screen modeGamepad-style navigation (XAML)Line spacing (DirectWrite)
ListView and GridViewLock screen appsMessage dialog
Multiple viewsOCRPrinting
Scaling according to DPISecondary windowsSplash screen
State triggersTailored multiple viewsTitle bar
UI basics (XAML)User interaction modeWebView control (XAML)
Window resizing

Custom user interactions

Basic inputComplex inkingInk analysis
Low latency inputPen hapticsSimple inking
Touch keyboardTouch keyboard text input

Data

CompressionContent indexerLogging
PDF documentSerializing and deserializing datax:Bind
x:DeferLoadStrategyXML DOMXmlLite

Deep links and app-to-app communication

App servicesJump list customizationRemote systems
Sharing content source appSharing content target appUser activities

Devices and sensors

AccelerometerActivity detection sensorAllJoyn consumer experiences
AllJoyn producer experiencesAltimeterBackground sensors
Barcode scannerBarcode scanner providerBarometer
Bluetooth advertisementBluetooth Low EnergyCash drawer
CompassCustom HID deviceCustom sensors
Custom serial deviceCustom USB deviceDevice enumeration and pairing
General Purpose Input/Output (GPIO)GyrometerInclinometer
Inter-Integrated Circuit (I2C)Lamp arrayLamp device
Light sensorLine displayMagnetometer
Magnetic stripe readerNear field communication (NFC)NFC enterprise provisioner
Orientation sensorPedometerPOS printer
Presence sensorProximity sensorRadial controller
Relative inclinometerSerial ArduinoSerial Peripheral Interface (SPI)
Simple orientation sensor

Files, folders, and libraries

File accessFile and folder thumbnailFile picker
File picker providerFile searchFolder enumeration
Library 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 metricsComposition visual without framework
Direct2D advanced color image renderingDirect2D custom image effectsDirect2D gradient mesh
Direct2D SVG image renderingTransform3D animations

Holographic

Basic hologramHolographic face trackingHolographic mixed reality capture
Holographic spatial mappingHolographic spatial stageHolographic voice input
Spatial interaction sourceTag-along hologram
Mixed Reality Model

Identity, security, and encryption

Credential lockerClient Device InformationCredential picker
Disabling screen captureEnterprise data protectionKeyCredentialManager
Lock screen personalizationMicrosoft Passport and Windows HelloPersonal Data Encryption
Smart cardsUser informationUserCertificateStore
Web account managementWebAuthenticationBrokerUserConsentVerifier

Launching and background tasks

Association launchingBackground activationBackground task
Extended executionMulti-instance appsSuspend and resume

Maps and location

GeolocationGeotagMapControl

Navigation

Back ButtonMaster/detailPivot
Projection

Networking and web services

Background transferDatagramSocketHttpClient
JSONMobile broadbandMobile hotspot
Network connectivityOn-Demand Wi-Fi hotspotRadios
Socket activity trigger stream socketStreamSocketSyndication
USSD protocolWebSocketWi-Fi Direct
Wi-Fi Direct servicesWi-Fi hotspot authenticationWi-Fi scanning

Platform architecture

CapabilitiesCustom capabilitiesIn-process component authoring
In-process component authoringOut-of-process component authoringVersion adaptive code

Speech and Cortana

Cortana voice commandSpeech recognition and synthesis

Tiles, toasts, and notifications

NotificationsSecondary tiles

[8]ページ先頭

©2009-2025 Movatter.jp