News

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

Featured

  • Full Stack Hands-On Development with .NET

    In the fast-paced realm of modern software development, proficiency across a full stack of technologies is not just beneficial, it's essential. Microsoft has an entire stack of open source development components in its .NET platform (formerly known as .NET Core) that can be used to build an end-to-end set of applications.

  • .NET-Centric Uno Platform Debuts 'Single Project' for 9 Targets

    "We've reduced the complexity of project files and eliminated the need for explicit NuGet package references, separate project libraries, or 'shared' projects."

  • Creating Reactive Applications in .NET

    In modern applications, data is being retrieved in asynchronous, real-time streams, as traditional pull requests where the clients asks for data from the server are becoming a thing of the past.

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

Subscribe on YouTube