In this article

UWP.. is one of many ways lớn create client applications for Windows. UWP apps use WinRT APIs khổng lồ provide powerful UI và advanced asynchronous features that are ikhuyến mãi for internet-connected devices.

Bạn đang xem: Universal windows platform

To tải về the tools you need to start creating UWP apps, see Get mix up, and then write your first tiện ích.

Where does UWP. fit in the hocbong2016.net development story?

UWP. is one choice for creating apps that run on Windows 10 devices, and can be combined with other platforms. UWPhường apps can make use of Win32 APIs and .NET classes (see API Sets for UWPhường apps, Dlls for UWP apps, & .NET for UWPhường apps).

The hocbong2016.net development story continues lớn evolve sầu, & along with initiatives such as WinUI, MSIX, and Project Reunion, UWP is a powerful tool for creating client apps.

Features of a UWPhường. app

A UWP ứng dụng is:

Secure: UWP apps declare which device resources & data they access. The user must authorize that access.Able to use a comtháng API on all devices that run Windows 10.Able lớn use device specific capabilities và adapt the UI to different device screen sizes, resolutions, và DPI.Available from the hocbong2016.net Store on all devices (or only those that you specify) that run on Windows 10. The hocbong2016.net Store provides multiple ways to lớn make money on your tiện ích.Able lớn be installed & uninstalled without risk khổng lồ the machine or incurring "machine rot".Engaging: use live tiles, push notifications, và user activities that interact with Windows Timeline và Cortana"s Piông chồng Up Where I Left Off, to engage users.Programmable in C#, C++, Visual Basic, & Javascript. For UI, use WinUI, XAML, HTML, or DirectX.

Let"s look at these in more detail.


UWP apps declare in their manifest the device capabilities they need such as access lớn the microphone, location, Webcam, USB devices, files, và so on. The user must acknowledge & authorize that access before the phầm mềm is granted the capability.

A common API surface across all devices

Windows 10 introduces the Universal Windows Platkhung (UWP), which provides a comtháng ứng dụng platkhung on every device that runs Windows 10. The UWPhường core APIs are the same on all Windows devices. If your ứng dụng only uses the core APIs, it will run on any Windows 10 device no matter whether you are targeting a desktop PC, Xbox, Mixed-reality headset, & so on.

A UWPhường tiện ích written in C++ /WinRT or C++ /CX has access khổng lồ the Win32 APIs that are part of the UWP.. These Win32 APIs are implemented by all Windows 10 devices.

Extension SDKs expose the quality capabilities of specific device types

If you target the universal APIs, then your ứng dụng can run on all devices that run Windows 10. But if you want your UWP.. phầm mềm to take advantage of device-specific APIs, then you can vày that, too.

Extension SDKs let you điện thoại tư vấn specialized APIs for different devices. For example, if your UWPhường app targets an IoT device, you can add the IoT extension SDK to lớn your project khổng lồ target features specific to lớn IoT devices. For more information about adding extension SDKs, see the Extension SDKs section in Programming with extension SDKs.

You can write your tiện ích so that you expect it to run only on a particular type of device, and then limit its distribution from the hocbong2016.net Store khổng lồ just that type of device. Or, you can conditionally chạy thử for the presence of an API at runtime và adapt your app"s behavior accordingly. For more information, see the Writing code section in Programming with extension SDKs.

The following đoạn phim provides a brief overview of device families & adaptive sầu coding:

Adaptive sầu controls and input

UI elements respond to the size and DPI of the screen the ứng dụng is running on by adjusting their layout & scale. UWPhường apps work well with multiple types of input đầu vào such as keyboard, mouse, touch, pen, & Xbox One controllers. If you need lớn further tailor your UI to a specific screen form size or device, new layout panels và tooling help you kiến thiết UI that can adapt lớn the different devices and khung factors that your app may run on.


Windows helps you target your UI to lớn multiple devices with the following features:

Universal controls và layout panels help you to optimize your UI for the screen resolution of the device. For example, controls such as buttons & sliders automatically adapt lớn device screen size và DPI mật độ trùng lặp từ khóa. Layout panels help adjust the layout of content based on the kích thước of the screen. Adaptive sầu scaling adjusts to resolution và DPI differences across devices.Comtháng input handling allows you to receive sầu đầu vào through touch, a pen, a mouse, a keyboard, or a controller such as a hocbong2016.net Xbox controller.Tooling that helps you to lớn design UI that can adapt to different screen resolutions.

Some aspects of your app"s UI will automatically adapt across devices. Your app"s user-experience design, however, may need lớn adapt depending on the device the ứng dụng is running on. For example, a phokhổng lồ tiện ích could adapt its UI when running on a small, handheld device khổng lồ ensure that usage is ikhuyến mãi for single-handed use. When a photo lớn tiện ích is running on a desktop computer, the UI should adapt lớn take advantage of the additional screen space.

Xem thêm: " Self Confident Là Gì ? Những Tiết Lộ Về Self Confidence Self Confidence Là Gì

There"s one store for all devices

A unified app store makes your tiện ích available on Windows 10 devices such as PC, tablet, Xbox, HoloLens, Surface Hub, và Internet of Things (IoT) devices. You can submit your tiện ích to the store và make it available to all types of devices, or only those you choose. You submit and manage all your apps for Windows devices in one place. Have sầu a C++ desktop tiện ích that you want to lớn modernize with UWP.. features và sell in the hocbong2016.net store? That"s okay, too.

UWP apps integrate with Application Insights for detailed telemetry & analytics—a crucial tool for understanding your users và improving your apps.

UWP apps can be packaged with MSIX và distributed via the hocbong2016.net Store, or in other ways. MSIX allows apps khổng lồ be updated no matter how they are distributed, see Update non-Store published tiện ích packages from your code.

Monetize your app

You can choose how you"ll monetize your phầm mềm. There are a number of ways to make money with your tiện ích. All you need to vì chưng is choose the one that works best for you, for example:

A paid tải về is the simplest option. Just name the price.Trials let users try your tiện ích before buying it, providing easier discoverability & conversion than the more traditional "freemium" options.Sale prices to incentivize users.In-app purchases.

Deliver relevant, real-time info khổng lồ your users khổng lồ keep them coming back

There are a variety of ways to lớn keep users engaged with your UWPhường app:

Live sầu tiles & lochồng screen tiles that show contextually relevant & timely info from your ứng dụng at a glance.Push notifications that bring real-time alerts to lớn your user"s attention.User Activities allow users to pichồng up where they left off in your phầm mềm, even across devices.The kích hoạt Center organizes notifications from your tiện ích.Background execution and triggers bring your tiện ích into lớn action when the user needs it.Your phầm mềm can use voice và Bluetooth LE devices lớn help users interact with the world around them.Integrate Cortamãng cầu khổng lồ add voice commvà capability khổng lồ your phầm mềm.

Use a language you already know

UWP apps use the Windows Runtime, the native API provided by the operating system. This API is implemented in C++ và is supported in C#, Visual Basic, C++, and JavaScript. Some options for writing UWP apps include:

XAML UI & C#, VB, or C++DirectX UI và C++JavaScript & HTMLWinUI

Links khổng lồ help you get going

Get set up

Cheông chồng out Get phối up lớn download the tools you need to start creating apps, và then write your first phầm mềm.

Design your app

The hocbong2016.net design system is named Fluent. The Fluent Design System is a mix of UWP.. features combined with best practices for creating apps that perkhung beautifully on all types of Windows-powered devices. Fluent experiences adapt & feel natural on devices from tablets lớn laptops, from PCs khổng lồ televisions, & on virtual reality devices. See The Fluent Design System for UWPhường apps for an introduction khổng lồ Fluent Design.

Good thiết kế is the process of deciding how users will interact with your phầm mềm, in addition khổng lồ how it will look và function. User experience plays a huge part in determining how happy people will be with your ứng dụng, so don"t skimp on this step. Design basics introduces you lớn designing a Universal Windows app. See the Introduction to lớn Universal Windows Platform (UWP) apps for designers for information on designing UWPhường. apps that delight your users. Before you start coding, see the device primer lớn help you think through the interaction experience of using your ứng dụng on all the different khung factors you want to target.

In addition lớn interaction on different devices, plan your ứng dụng to embrace the benefits of working across multiple devices. For example:

Add services

Submit your app to lớn the Store

Partner Center lets you manage and submit all of your apps for Windows devices in one place. See Publish Windows apps và games to learn how to submit your apps for publication in the hocbong2016.net Store.

New features simplify processes while giving you more control. You"ll also find detailed analytic reports combined payout details, ways lớn promote your ứng dụng and engage with your customers, and much more.

For more introductory material, see An Introduction khổng lồ Building Windows Apps for Windows 10 Devices

More advanced topics

How the Universal Windows Platkhung relates to Windows Runtime APIs

If you"re building a Universal Windows Platform (UWP) tiện ích, then you can get a lot of mileage & convenience out of treating the terms "Universal Windows Platform (UWP)" & "Windows Runtime (WinRT)" as more or less synonymous. But it is possible to lớn look under the covers of the công nghệ, and determine just what the difference is between those ideas. If you"re curious about that, then this last section is for you.

The Windows Runtime, and WinRT APIs, are an evolution of Windows APIs. Originally, Windows was programmed via flat, C-style Win32 APIs. To those were added COM APIs (DirectX being a prominent example). Windows Forms, WPF, .NET, and managed languages brought their own way of writing Windows apps, & their own flavor of API công nghệ. The Windows Runtime is, under the covers, the next stage of COM. At the actual application binary interface (ABI) layer, its roots in COM become visible. But the Windows Runtime was designed to be callable from a great range of different programming languages. And callable in a way that"s very natural to lớn each of those languages. To this over, access lớn the Windows Runtime is made available via what are known as language projections. There is a Windows Runtime language projection inlớn C#, into Visual Basic, inlớn standard C++, into JavaScript, and so on. Furthermore, once packaged appropriately (see Desktop Bridge), you can điện thoại tư vấn WinRT APIs from an tiện ích built in one of a great range of application models: Win32, .NET, WinForms, and WPF.

And, of course, you can gọi WinRT APIs from your UWP.. tiện ích. UWPhường is an application mã sản phẩm built on top of the Windows Runtime. Technically, the UWP.. application Model is based on CoreApplication, although that detail may be hidden from you, depending on your choice of programming language. As this topic has explained, from a value proposition point of view, the UWP lends itself khổng lồ writing a single binary that can, should you choose, be published to lớn the hocbong2016.net Store & run on any one of a great range of device khung factors. The device reach of your UWPhường app depends on the submix of Windows Runtime APIs that you limit your phầm mềm khổng lồ calling, or that you Hotline conditionally.

Hopefully, this section has been successful in describing the difference between the công nghệ underlying Windows Runtime APIs, và the mechanism & business value of the Universal Windows Platkhung.