Windows UI Library: Difference between revisions

Content deleted Content added
External links: API docs and examples
update refs
Line 3:
{{Use mdy dates|date=September 2011}}
{{Infobox software
| name = Windows UI Library
| other_names = WinUI, UWP XAML, WinRT XAML
| logo = Logo-winui.svg
| logo_size = x64px
| screenshot =
| caption =
| developer = [[Microsoft]]
| released = {{Start date and age|2011|September}}
| latest release version = 2.7.0
| latest release date = {{Start date and age|2021|09|15}}
| latest preview version = 2.8.0-prerelease.210927001
| latest preview date = {{Start date and age|2021|09|27}}
| programming language = [[C++]] and [[C Sharp (programming language)|C#]]
| operating system = [[Microsoft Windows]]<ref>{{cite web
|url = https://msdndocs.microsoft.com/en-us/libraryprevious-versions/windows/apps/hh700354(v=win.aspx10)
|title = XAML overview (Windows)
|work department= Windows Devapp Centerdevelopment
|publisher work= [[Microsoft CorporationDocs]]
|access-date = June 11, 20132021-10-15
|access-date = August 19, 2013
}}</ref>
| platform = [[IA-32|Intel x86 32-bit]], [[x86-64]] and [[ARM architecture|ARM]]
| genre = [[Application framework]]
| license = [[MIT License]] after 2018-12-04;<ref name="Connect2018-open-source">{{cite web |last=Gallo |first=Kevin |date=2018-12-04 |df=mdy |title=Announcing Open Source of WPF, Windows Forms, and WinUI at Microsoft Connect(); 2018 |url=https://blogs.windows.com/windowsdeveloper/2018/12/04/announcing-open-source-of-wpf-windows-forms-and-winui-at-microsoft-connect-2018/ |department=Windows Developer Blog |website=Official Microsoft Blog |access-date=2021-10-09}}</ref> [[Freeware]] before
| website = {{Official URL}}
}}
'''Windows UI Library''' ('''WinUI''' formerly known as '''Windows Runtime XAML Framework''' or '''WinRT XAML'''; WinRT XAML was codenamed "Jupiter",<ref>{{cite web | url=httphttps://blog.jerrynixon.com/2012/06/windows-8-15-more-reasons-why-i-choose.html | title=Windows 8: 15 More Reasons why I choose XAML over HTML5 | authorlast=Jerry Nixon |first=Jerry |date=2012-06-20 June|work=Jerry 2012Nixon |blog work|access-date=Microsoft2021-10-15}}</ref><ref>{{cite web | url=httphttps://blogchannel9.jerrynixonmsdn.com/2013Blogs/01DevRadio/devradioMicrosoft-xamlDevRadio-XAML-and-windowsWindows-8-app.html?spref=twApp-Development | title=DevRadio: XAML and Windows 8 App Development |last1=Nixon author|first1=Jerry Nixon, Tim |last2=Heuer |first2=Tim |date=2013-01-24 January 2013 |department=DevRadio |work=[[Channel 9 (Microsoft)|Channel 9]] |access-date=2021-10-15}}</ref> alsoand formerly known as '''UWP XAML''' orand simply'''WinRT XAML''') is a [[user interface]] [[API]] that is part of the [[Windows Runtime]] [[programming model]] that forms the backbone of [[Universal Windows Platform apps]] (formerly known as ''[[Metro (design language)|Metro]]-style'' or ''Immersive'') for the [[Windows 8]], [[Windows 8.1]], [[Windows 10]] and [[Windows Phone 8.1]] operating systems. It enables declaring user interfaces using [[Extensible Application Markup Language]] (XAML) technology.
 
WinUI is one of the multiple UI frameworks provided built-in for the Windows Runtime; the others being [[HTML5]] (e.g., via [[WinJS]]) and [[DirectX]].
 
WinUI 3 decouples the WinRT XAML framework from the operating system as a separate package to be updated quickly and make new features work on older versions of Windows.<ref>{{Citecite web |lastfirst=BlogMiguel |firstlast=WindowsRamos Developer|date=2020-07-07 |title=A deep-dive into WinUI 3 in desktop apps |url=https://blogs.windows.com/windowsdeveloper/2020/07/07/a-deep-dive-into-winui-3-in-desktop-apps/|access-date=2021-05-28 |website=Windows Developer Blog |languageaccess-date=en2021-US05-28}}</ref> It is part of [[Windows App SDK]] (codenamed "Project Reunion"), a Microsoft effort to reconcile the Windows desktop (Win32) and the UWP low IL app model.
 
==Windows Phone==
Up to [[Windows Phone 8|Windows Phone 8.0]] Windows RuntimeWinRT XAML Framework was not supported and XAML applications were based on [[Silverlight]] XAML framework and deployed in [[XAP (file format)|XAP]] format.
 
In [[Windows Phone 8.1]] the Windows RuntimeWinRT XAML is available along with improved Windows Runtime support. This convergence between platforms enable [[Universal app]]s that can target both Windows 8.1 and Windows Phone 8.1 while sharing most of the code, including user interface. The [[Windows Phone 8.1]] is still capable of running [[Silverlight]] based XAML apps and new features and API were also added to this framework too (called [[Silverlight]] 8.1<ref>{{cite web |url=https://msdndocs.microsoft.com/en-us/libraryprevious-versions/windowsphonewindows/developapps/dn642082(v=vs.105) |title=Windows Phone Silverlight 8.aspx1 apps |department=Windows 8 development |website=[[Microsoft Docs]] |access-date=2021-10-15}}</ref>)
 
==Related technologies==
The XAML FrameworkWinUI is related to [[Windows Presentation Foundation]] (WPF) and [[Silverlight]] (WPF/E)—similar XAML-based UI frameworks used for desktop applications and portable applications respectively. The XAML frameworkWinUI uses a lot of the same names for its APIs as both of these older technologies—especially Silverlight, but its use is limited to the Windows OS (specifically Windows 8 and later) as with WPF. The major difference is that SilverlightWPF and WPFSilverlight are largelywritten based on thein [[CommonC LanguageSharp Runtime(programming language)|C#]] (CLR) and as such require using programming[[.NET languageslanguage]]s such as [[C Sharp (programming language)|C#]] or [[Visual Basic .NET|Visual Basic]], while theWinRT XAML framework is part of the Windows Runtime, written in [[C++]] and available to [[machine code|native code]] and also available, and has tools for development, with [[C++/CX]] or [[C++/WinRT]].
 
==See also==