Windows 10 WinRT API Pack lets developers add WinRT features to WPF and WinForms

Last week, Microsoft released .NET Core 3.0 along with a plethora of updates for its developer tools. Now, to go along with that, the company has announced the release of the Windows 10 WinRT API Pack.

Thew new API pack lets developers add features that have typically been exclusive to WinRT (including UWP) apps to WinForms and WPF. These include geolocation, Windows AI, machine learning, the WebView feature for web content, and XAML controls.

The API pack is available as a NuGet package on nuget.org, and it supports Windows 10 version 1803 and above. To add it to your project, you"ll first need to set it up to support Package Reference. Then, select the package that applies to the version of Windows 10 you want to target, and you"ll be able to use WinRT features in either WPF and WinForms apps.

To see an example of WPF or WinForms app using WinRT features, you can check out Microsoft.Toolkit on GitHub. The toolkit is using controls for features such as WebView, XAML, inking, and geolocation data. You can also download the Windows Community Toolkit Sample App from the Microsoft Store to see the controls in action without getting into the code.

Report a problem with article
Next Article

Surface Pro 7, Surface Laptop 3, and ARM-based Surface shown off in renders

Previous Article

AMD Radeon 19.9.3 driver brings Radeon Image Sharpening to Vega