Microsoft has launched model 1.1 of the Home windows App SDK, a set of growth instruments that (unsurprisingly) allow you to construct apps for Home windows 10 and 11. The preliminary launch of the Home windows App SDK got here shortly after Home windows 11 was launched, and it’s a technique to carry collectively fashionable visuals and options in addition to conventional Win32 capabilities in the identical app. This new model comes with some notable enhancements to make the expertise even higher.
Mica is a brand new floor materials Microsoft launched with Home windows 11, and it permits your desktop background to softly shine by means of the app, including a little bit of coloration to the UI. Whereas the preliminary launch of the Home windows App SDK got here after Home windows 11 was already out, you couldn’t construct apps that used the brand new Mica materials this fashion. Together with this, the WinUI 3 gallery within the Home windows App SDK has new samples, new controls, and a refreshed interface to align extra with Home windows 11 design rules.
One other main enchancment is the power to make apps that require elevation (which means they have to be run as an administrator), which was a limitation of the unique launch. Moreover, apps packaged utilizing the MSIX format, sparse-packaged apps, and unpackaged apps may also ship Home windows toast notifications now, together with when the app isn’t working. Which means apps have a technique to alert customers even when the app isn’t getting used.
Microsoft has additionally made efficiency enhancements for apps that use C# because of updates within the WinRT interop layer. Microsoft says a easy “Hiya World” app can see startup occasions as much as 9% quicker, and also you must also see massive enhancements when utilizing dependency properties in WinUI 3 apps.
On the developer aspect, it’s now doable to set an app to robotically restart when it closes on account of an replace or crash. Moreover, you possibly can set restoration choices so the app can carry customers again to the place they have been earlier than the app unexpectedly closed.
Different modifications embody improved bootstrapper APIs, assist for self-contained apps (i.e. apps that comprise the required Home windows App SDK dependencies to make use of them), and the power to alter surroundings variables with out having to make use of the registry API immediately. Microsoft has additionally launched a brand new windowing API that makes it doable to set the z-order of your app home windows. Lastly, Microsoft introduced that the Template Studio for WinUI (C#) is now out there within the Visible Studio Market. This extension makes it simpler to create a WinUI app utilizing a wizard-based expertise, producing “well-formed, readable code”, and it’s a great way to get began with WinUI growth.
To put in the Home windows App SDK instruments for growth, you’ll have to be utilizing Visible Studio 2022 or 2019, and observe the directions on this web page relying on the form of app you need to construct. You need to robotically be capable to get the newest model of the instruments this fashion. You may also discover the total launch notes right here.