请输入您要查询的百科知识:

 

词条 Universal Windows Platform apps
释义

  1. Nomenclature

  2. In Windows 8.x

     Look and feel  Distribution and licensing  Multiple copies 

  3. In Windows 10

      Look and feel    Multitasking    Licensing and distribution  

  4. Lifecycle

  5. Development

     Windows Runtime  Universal apps  APPX 

  6. Security

  7. See also

  8. References

Universal Windows Platform (UWP) apps[1] (formerly Windows Store apps and Metro-style apps)[2] are programs that can be used across all compatible Microsoft Windows devices, including personal computers (PCs), tablets, smartphones, Xbox One, Microsoft HoloLens, and Internet of Things. UWP software is primarily purchased and downloaded via the Microsoft Store.[3]

Nomenclature

Starting with Windows 10, Windows uses "Windows app" to refer to UWP apps. Any app installed from Microsoft Store (formerly Windows Store), is a "Trusted Windows Store app". Other computer programs running on a desktop computer are "desktop apps".[4]

The terms "Universal Windows Platform" (or "UWP") and "UWP app" only appear on Microsoft documentation for its developers.[5] Microsoft started to retrospectively use "Windows Runtime app" to refer to the precursors of UWP app, for which there was no unambiguous name before.[6]

In Windows 8.x

Windows software first became available under the name "Metro-style apps" when the Windows Store opened in 2012 and were marketed with Windows 8.[2][7]

Look and feel

In Windows 8.x, Metro-style apps do not run in a window. Instead, they either occupy the entire screen or are snapped to one side, in which case they occupy the entire height of the screen but only part of its width. They have no title bar, system menu, window borders or control buttons. Command interfaces like scroll bars are usually hidden at first. Menus are located in the "settings charm". Metro-style apps use the UI controls of Windows 8.x and typically follow Windows 8.x UI guidelines, such as horizontal scrolling and the inclusion of edge-UIs, like the app bar.[8]

In response to criticism from customers, in Windows 8.1, a title bar is present but hidden unless users move the mouse cursor to the top of the screen. The "hamburger" menu button on their title bar gives access to the charms.[8]

Distribution and licensing

For most users, the only point of entry of Metro-style apps is Windows Store. Enterprises operating a Windows domain infrastructure may enter into a contract with Microsoft that allows them to sideload their line-of-business Metro-style apps, circumventing Windows Store. Also, major web browser vendors such as Google and Mozilla Foundation are selectively exempted from this rule; they are allowed to circumvent Microsoft guidelines and Windows Store and run a Metro-style version of themselves if the user chooses to make their product the default web browser.[9][10]

Metro-style apps are the only third-party apps that run on Windows RT. Traditional third-party apps do not run on this operating system.

Multiple copies

Before Windows 8, computer programs were identified by their static computer icons. Windows taskbar was responsible for representing every app that had a window when they run. Metro-style apps, however, are identified by their "tiles" that can show their icon and also other dynamic contents. In addition, in Windows 8 and Windows 8.1 RTM, they are not shown on the Windows taskbar when they run, but on a dedicated app switcher on the left side of the screen.[11] Windows 8.1 Update restored taskbar icons for Metro-style apps.[12]

There is no set limit on how many copies of desktop apps can run simultaneously. For example, one user may run as many copies of programs such as Notepad, Paint or Firefox as the system resources support. (Some desktop apps, such as Windows Media Player, are designed to allow only a single instance, but this is not enforced by the operating system.) However, in Windows 8, only one copy of Metro-style apps may run at any given time; invoking the app brings the running instance to the front. True multi-instancing of these apps were not available until Windows 10 version 1803 (released in May 2018).[13]

In Windows 10

Windows 10 brings significant changes to how UWP apps look and work.

Look and feel

{{See also|Fluent Design}}

How UWP apps look depends on the app itself. UWP apps built specifically for Windows 10 typically have a distinct look and feel, as they use new UI controls that look different from those of previous versions of Windows. The exception to this are apps that use custom UI, which is especially the case with video games. Apps designed for Windows 8.x look significantly different from those designed for Windows 10.

UWP apps can also look almost identical to traditional desktop apps, using the same legacy UI controls from Windows versions dating back to Windows 95. These are legacy desktop apps that are converted to the UWP apps and distributed using the APPX file format.

Multitasking

In Windows 10, most UWP apps, even those designed for Windows 8.x, are run in floating windows, and users use the Windows taskbar and Task View to switch between both UWP apps and desktop apps. Windows 10 also introduced "Continuum" or "Tablet Mode". This mode is by default disabled on desktop computers and enabled on tablet computers, but desktop users can switch it on or off manually. When the Tablet Mode is off, apps may have sizable windows and visible title bars. When the Tablet Mode is enabled, resizable apps use the windowing system similar to that of Metro-style apps on Windows 8.x in that they are forced to either occupy the whole screen or be snapped to one side.[14][15][16]

UWP apps in Windows 10 can open in multiple windows. Microsoft Edge, Calculator, and Photos are examples of apps that allow this. Windows 10 v1803 (released in May 2018) added true multi-instancing capabilities, so that multiple independent copies of a UWP app can run.[13]

Licensing and distribution

UWP apps can be downloaded from Windows Store or sideloaded from another device. The sideloading requirements were reduced significantly from Windows 8.x to 10, but the app must still be signed by a trusted digital certificate that chains to a root certificate.[17]

Lifecycle

Metro-style apps are suspended when they are closed; suspended apps are terminated automatically as needed by a Windows app manager. Dynamic tiles, background components and contracts (interfaces for interacting with other apps) may require an app to be activated before a user starts it.[18][19]

For six years, invoking an arbitrary Metro-style app or UWP app from the command line was not supported; this feature was first introduced in the Insider build 16226 of Windows 10,[20] which was released on 21 June 2017.[21]

Development

Windows Runtime

Traditionally, Windows software were developed using Windows API. Software had access to the API with no arbitrary restrictions. Developers were free to choose their own programming language and development tools. Metro-style apps, however, are developed using Windows Runtime (WinRT). Calling a forbidden API disqualifies the app from appearing on Windows Store.

Not every app using WinRT is a Metro-style app; a limited subset of WinRT is available for desktop apps.[22]

Metro-style apps can only be developed using Microsoft's own development tools. According to Allen Bauer, Chief Scientist of Embarcadero Technologies, there are APIs that every computer program must call but Microsoft has forbidden them, except when the call comes from Microsoft's own Visual C++ runtime.[23][24][25]

Universal apps

{{Main|Universal Windows Platform}}

Apps developed to work intrinsically on smartphones, personal computers, video game consoles and HoloLens are called universal apps. This is accomplished by using the universal app API, first introduced in Windows 8.1 and Windows Phone 8.1. Visual Studio 2013 with Update 2 could be used to develop these apps.[26][27] Windows 10 introduced Universal Windows Platform (UWP) 10 for developing universal apps. Apps that take advantage of this platform are developed with Visual Studio 2015 or later. Older Metro-style apps for Windows 8.1, Windows Phone 8.1 or for both (universal 8.1) need modifications to migrate to this platform.[28][29]

UWP is not distinct from Windows Runtime; rather, it is an extension of it. Universal apps no longer indicate having been written for specific OS in their manifest; instead, they target one or more device families, e.g. desktop, mobile, Xbox or Internet of Things (IoT). They react to the capabilities that become available to the device. A universal app may run on both a small mobile phone and a tablet and provide suitable experience. The universal app running on the mobile phone may start behaving the way it would on a tablet when the phone is connected to a monitor or a suitable docking station.[30]

APPX

{{See also|Open Packaging Conventions}}{{Infobox file format
| name = APPX
| logo =
| icon =
| iconcaption =
| screenshot =
| caption =
| extension = .appx, .appxbundle
| mime =
| type code =
| uniform type =
| conforms to =
| magic =
| owner = Microsoft
| genre = Archive
| container for = Installation information and an EXE or MSI file
| contained by =
| extended from =
| extended to =
| standard =
| free = Yes
}}APPX is the file format used to distribute and install apps on Windows 8.x and 10, Windows Phone 8.1, Windows 10 Mobile, Xbox One, Hololens, and Windows 10 IoT Core.[31] Unlike legacy desktop apps, APPX is the only installation system allowed for UWP apps. It replaces the XAP file format on Windows Phone 8.1, in an attempt to unify the distribution of apps for Windows Phone and Windows 8.[32] APPX files are only compatible with Windows Phone 8.1 and later versions, and with Windows 8 and later versions.[33]

The Windows Phone 8.x Marketplace allows users to download APPX files to an SD Card and install them manually. In contrast, sideloading is prohibited on Windows 8.x, unless the user has a developers license or in a business domain.[34]{{Unreliable source?|date=March 2016}}

Security

Traditionally, Windows software have had the power to use and change their ecosystem however they wanted to. Windows user account rights, User Account Control and antivirus software attempt to keep this ability in check and notify the user when the app tries to use it for malicious purposes. Metro-style apps, however, are sandboxed and cannot permanently change a Windows ecosystem. They need permission to access hardware devices such as webcam and microphone and their file system access is restricted to user folders, such as My Documents. Microsoft further moderates these programs and may remove them from the Windows Store if they are discovered to have security or privacy issues.[35][36]

See also

  • Windows App Studio
  • WinJS

References

1. ^{{cite|title=Microsoft is trying to change Windows software forever — here's why it'll be a tough fight|first=Matt|last=Weinberger|date=March 17, 2016|url=http://www.businessinsider.com/microsoft-universal-windows-platform-explained|accessdate=June 27, 2016}}
2. ^{{cite|title=Metro, Modern, Now Universal? Microsoft Can't Make Up Its Mind!|first=William|last=Harrel|date=April 10, 2015|work=Digital Trends|url=http://www.digitaltrends.com/computing/microsoft-universal-apps/|accessdate=June 27, 2016}}
3. ^{{cite|title=Microsoft's Windows app strategy comes under fire: 'The most aggressive move Microsoft has ever made'|first=Matt|last=Weinberger|date=March 4, 2016|work=Business Insider|url=http://www.businessinsider.com/epic-ceo-tim-sweeney-slams-windows-10-2016-3|accessdate=June 27, 2016}}
4. ^Cortana. Windows 10 version 1511. Microsoft (2015).
5. ^{{Cite web |url=https://docs.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide |title=What's a Universal Windows Platform (UWP) app? |website=Docs |publisher=Microsoft |date=7 May 2018}}
6. ^{{Cite web |url=https://docs.microsoft.com/en-us/previous-versions/windows/desktop/apps/dn726537(v=win.10) |title=How to develop a Windows Runtime app |website=Docs |publisher=Microsoft |date=15 May 2017}}
7. ^{{cite|title=Microsoft's Metro apps rechristened with a new, sixth name: Windows apps|first=Jared|last=Newman|work=PCWorld|date=March 26, 2015|url=http://www.pcworld.com/article/2902220/microsofts-metro-apps-rechristened-with-a-new-sixth-name-windows-apps.html|accessdate=June 27, 2016}}
8. ^{{Cite web |url=http://www.infoworld.com/article/2606675/microsoft-windows/147162-What-s-new-in-the-Windows-8.1-Update.html#slide6 |title=What's new in Windows 8.1 Update |work=InfoWorld |publisher=IDG |date=8 April 2014 |first=Woody |last=Leonhart }}
9. ^{{Cite web |url=http://www.zdnet.com/googles-latest-chrome-release-tries-to-replace-the-windows-8-desktop-7000025190 |title=Google’s latest Chrome release tries to replace the Windows 8 desktop |work=ZDNet |publisher=CBS Interactive |date=15 January 2014 |first=Ed |last=Bott |quote=Under Microsoft’s rules, Metro-style browsers are able to sidestep requirements that apply to all other apps, including the mandate to be distributed through the Windows Store}}
10. ^{{cite web|last=Branscombe|first=Mary|title=Windows 8 browsers: the only Metro apps to get desktop power|url=http://www.techradar.com/news/software/operating-systems/windows-8-browsers-the-only-metro-apps-to-get-desktop-power-1073930|work=TechRadar|publisher=Future Publishing|accessdate=17 January 2014|date=27 March 2012}}
11. ^{{cite web|title=Switch between open apps|url=http://www.microsoft.com/surface/en-us/support/apps-and-windows-store/how-to-switch-between-apps?lc=1033|work=Microsoft Surface manual|publisher=Microsoft|accessdate=31 December 2013}}
12. ^{{cite web |last=Fitzsimmons |first=Michelle |title=Windows 8.1 Update 1: hands on with Microsoft's latest Windows update |url= http://www.techradar.com/news/software/operating-systems/windows-8-1-update-1-what-s-in-microsoft-s-latest-windows-update-1232863 |work=TechRadar |publisher=Future plc |accessdate=May 19, 2014 |date=May 13, 2014}}
13. ^{{cite magazine|last1=Whitechapel|first1=Andrew|title=Universal Windows Platform - Closing UWP-Win32 Gaps|url=https://msdn.microsoft.com/en-us/magazine/mt846651|website=MSDN Magazine|publisher=Microsoft|volume=33|number=5|date=May 2018}}
14. ^{{cite web|last1=Seifert|first1=Dan|title=The nine most important updates in Windows 10|url=https://www.theverge.com/2015/7/29/9060177/microsoft-windows-10-update-changes-browser-start-menu-cortana-xbox#list-item-5|website=The Verge|publisher=Vox Media|date=29 July 2015}}
15. ^{{Cite web|url = https://www.theverge.com/2015/7/28/9045331/microsoft-windows-10-review|title = Windows 10 review|date = 28 July 2015|accessdate = |website = The Verge|publisher = Vox Media|last = Warren|first = Tom}}
16. ^{{Cite web|url = http://www.zdnet.com/article/windows-10-a-new-beginning/|title = Windows 10: A new beginning|date = 28 July 2015|accessdate = |website = ZDNet|publisher = CBS Interactive|last = Bott|first = Ed}}
17. ^{{cite AV media |last1=Sheehan |first1=John |first2=Peyman |last2=Zanjani |date=30 March 2016 |title=Project Centennial: Bringing Existing Desktop Applications to the Universal Windows Platform |medium=Video |url=https://channel9.msdn.com/Events/Build/2016/B829 |access-date=3 April 2016 |format= |minutes=8:50 |location=San Francisco |publisher=Microsoft Corporation |id= |isbn= |oclc= |quote= |ref= }}
18. ^{{cite web|last1=Joshi|first1=Bipin|title=Understanding Windows Store App Lifecycle and State Management|url=http://www.codeguru.com/win_mobile/win_store_apps/understanding-windows-store-app-lifecycle-and-state-management.htm|website=Code Guru|publisher=QuinStreet|date=22 February 2013}}
19. ^{{cite web|last1=Hale|first1=David|title=App lifecycle|url=https://msdn.microsoft.com/en-us/windows/uwp/launch-resume/app-lifecycle|website=Windows Dev Center|publisher=Microsoft|date=7 March 2016}}
20. ^{{cite web|last1=Whitechapel|first1=Andrew|title=Command-Line Activation of Universal Windows Apps|url=https://blogs.windows.com/buildingapps/2017/07/05/command-line-activation-universal-windows-apps/|website=Building Apps for Windows|publisher=Microsoft|date=5 July 2017}}
21. ^{{cite web|last1=Sarkar|first1=Dona|title=Announcing Windows 10 Insider Preview Build 16226 for PC|url=https://blogs.windows.com/windowsexperience/2017/06/21/announcing-windows-10-insider-preview-build-16226-pc/|website=Windows Experience Blog|publisher=Microsoft|date=21 June 2017}}
22. ^{{cite web|title=Windows Runtime APIs for desktop apps|url=https://msdn.microsoft.com/en-us/library/windows/desktop/dn554295%28v=vs.85%29.aspx|website=MSDN|publisher=Microsoft|accessdate=31 July 2015}}
23. ^{{cite web|last=Grange|first=Eric|title=Why no native WinRT support in Delphi XE3?|url=http://www.delphitools.info/2012/08/23/why-no-native-winrt-support-in-delphi-xe3/|work=DelphiTools|accessdate=13 January 2014|date=23 August 2012}}
24. ^{{cite web|last=Anderson|first=Tim|title=Third-party compilers locked out of Windows Runtime development|url=http://www.itwriting.com/blog/6347-third-party-compilers-locked-out-of-windows-runtime-development.html|work=Tim Anderson's ITWriting|accessdate=13 January 2014|date=23 August 2012}}
25. ^{{cite web|last=Bauer|first=Allen|title=HTML5 Builder|url=https://forums.embarcadero.com/message.jspa?messageID=484319#484319|work=Embarcadero Developer Network|publisher=Embarcadero Technologies|accessdate=13 January 2014|date=22 August 2012}}
26. ^{{cite web|last1=Waheed|first1=Ahmed|title=A first look at the Windows 10 universal app platform|url=http://blogs.msdn.com/b/msgulfcommunity/archive/2015/03/02/a-first-look-at-the-windows-10-universal-app-platform.aspx|website=Microsoft Gulf Technical Community blog|publisher=Microsoft|date=2 March 2015}}
27. ^{{cite journal|last1=Appel|first1=Rachel|title=Modern Apps : Build Universal Apps for the Windows Platform|url=https://msdn.microsoft.com/en-us/magazine/dn781364.aspx|website=MSDN Magazine|publisher=Microsoft|date=September 2014|volume=29|number=9}}
28. ^{{cite web|title=Migrate apps to the Universal Windows Platform (UWP)|url=https://msdn.microsoft.com/library/mt148501.aspx|website=MSDN|publisher=Microsoft|accessdate=31 July 2015}}
29. ^{{cite web|title=Move from Windows Runtime 8.x to UWP|url=https://msdn.microsoft.com/en-us/library/windows/apps/xaml/mt238322.aspx|website=Windows Developer Center|publisher=Microsoft|accessdate=31 July 2015}}
30. ^{{cite web|title=Guide to Universal Windows Platform (UWP) apps|url=https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn894631.aspx|website=Windows Dev Center|publisher=Microsoft|accessdate=31 July 2015}}
31. ^{{cite web|url=http://msdn.microsoft.com/en-us/library/windows/apps/hh464929.aspx |title=App packages and deployment (Windows Runtime apps) |website=Windows Dev Center |publisher=Microsoft |accessdate=8 March 2016}}
32. ^{{cite web |url=https://www.theverge.com/2014/2/11/5400660/windows-phone-8-1-features-leaked |title=Windows Phone 8.1 includes universal apps and lots of feature updates |first=Tom |last=Warren |date=11 February 2014 |publisher=Vox Media|work=The Verge}}
33. ^How to Install APPX File on Windows Phone 8.1 {{webarchive |url=https://web.archive.org/web/20150425033027/http://www.wphoneapps.net/2013/12/how-to-install-xap-file-on-windows-phone.html |date=April 25, 2015 }}
34. ^{{cite web|url=http://www.howtogeek.com/129535/how-to-sideload-modern-apps-on-windows-8/ |title=How To Sideload Modern Apps on Windows 8 |work=How-To Geek}}
35. ^{{cite web |title=Microsoft talks Windows Store features, Metro app sandboxing for Windows 8 developers |url=https://www.theverge.com/2012/5/17/3026590/microsoft-windows-8-developers-windows-store-sandboxing |work=The Verge |publisher=Vox Media |date=17 May 2012 |accessdate=12 January 2013 |first=Chris |last=Ziegler}}
36. ^{{cite web |last=Rosoff |first=Matt |title=Here's Everything You Wanted To Know About Microsoft's Upcoming iPad Killers |url=http://articles.businessinsider.com/2012-02-09/tech/31040510_1_steven-sinofsky-pcs-microsoft-first |work=Business Insider |date=9 February 2012 |accessdate=12 January 2013 |archive-url=https://web.archive.org/web/20130122030754/http://articles.businessinsider.com/2012-02-09/tech/31040510_1_steven-sinofsky-pcs-microsoft-first |archive-date=22 January 2013 |dead-url=yes |df=dmy-all }}
{{Windows Phone}}{{Portal bar|.NET Framework}}

7 : .NET Framework|Computer-related introductions in 2012|Executable file formats|Universal Windows Platform apps|Windows APIs|Windows architecture|Windows technology

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/11 7:34:32