Windows Community Toolkit 5.0 Shouts Out to WinForms, WPF

Windows Community Toolkit 5.0 includes new functionality for using UWP controls in Windows Forms and WPF desktop applications, introduces a new TabView control, boosts social media platform support and more.

The open source project (formerly called the UWP Community Toolkit) provides helper functions, custom controls and app services for .NET developers across a range of Windows 10 frameworks, such as WPF, WinForms, Xamarin, .NET Core and others.

The v5.0 update -- following v4.0 released in August -- features a developer preview of a new control that lets coders use UWP controls in non-UWP Win32 desktop applications, functionality enabled by pre-release APIs introduced in the 1809 build of Windows 10. The idea of this new WindowsXamlHost control is to let desktop applications built on older frameworks like WPF and WinForms use built-in or custom UWP controls. Documentation for the WindowsXamlHost control documentation is available here.

Along the same line, the new update also introduces wrapped UWP controls. "These controls wrap the interface and functionality of a specific UWP platform control," said Nikola Metulev, senior program manager, Windows Developer Team, in an Oct. 31 blog post announcing the release of v5.0. "These controls can be added directly to the design surface of a WPF or Windows Forms project and can be used like any other control." Now available as wrapped UWP controls -- again, in a developer preview -- are: WebView, InkCanvas, MediaPlayerElment, MapControl and others.

A brand-new control added to the platform is a TabView control, which received much discussion on GitHub in the two years since it was proposed and subsequently enacted. "The TabView control allows you to provide a rich Tab experience, with support for fully customizing the behavior, built in support for closing tabs, drag and drop and more," Metulev said.

Microsoft and community volunteers also provided hooks into the Chinese Weibo social platform and Twitter and LinkedIn .NET Framework support. "In this new release, the community continued to improve the cross platform experience by building the .NET Framework platform specific implementation required for authentication to enable OAuth on WPF and Windows Forms," Metulev said.

See the release notes for more information on the above and many other new features, functionality and bug fixes, including enhancements to the DataGrid control, InAppNotification, animations, services, helpers, developer tools, parsers and more.

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus


  • ML.NET Improves Object Detection

    Microsoft improved the object detection capabilities of its ML.NET machine learning framework for .NET developers, adding the ability to train custom models with Model Builder in Visual Studio.

  • More Improvements for VS Code's New Python Language Server

    Microsoft announced more improvements for the new Python language server for Visual Studio Code, Pylance, specializing in rich type information.

  • Death of the Dev Machine?

    Here's a takeaway from this week's Ignite 2020 event: An advanced Azure cloud portends the death of the traditional, high-powered dev machine packed with computing, memory and storage components.

  • COVID-19 Is Ignite 2020's Elephant in the Room: 'Frankly, It Sucks'

    As in all things of our new reality, there was no escaping the drastic changes in routine caused by the COVID-19 pandemic during Microsoft's big Ignite 2020 developer/IT pro conference, this week shifted to an online-only event after drawing tens of thousands of in-person attendees in years past.

  • Visual Studio 2019 v16.8 Preview Update Adds Codespaces

    To coincide with the Microsoft Ignite 2020 IT pro/developer event, the Visual Studio dev team shipped a new update, Visual Studio 2019 v16.8 Preview 3.1, with the main attraction being support for cloud-hosted Codespaces, now in a limited beta.

Upcoming Events