News

Contributing to Windows Community Toolkit Now Easier

Microsoft's ongoing revamp of the Windows Community Toolkit (WCT) is providing multiple benefits, including making it easier for developer to contribute to the project, which is a collection of helpers, extensions and custom controls for building UWP and .NET apps for Windows.

As we reported last summer, Microsoft enlisted Uno Platform to help reorganize the project, an effort that includes reworking the backend infrastructure and the introduction of Windows Community Toolkit Labs to serve as an online one-stop-shop where new components are developed, often starting out as kit "experiments" that encapsulate code with associated documentation, samples and tests.

Microsoft last week provided an update on the revamp's progress.

"Now, with a single-codebase we can write a component that will work for WinUI 2 on UWP, the Windows App SDK + WinUI 3, and Uno Platform (using WinUI 2 or 3)!!!" said Microsoft's Michael Hawker, the point person behind the toolkit. "Also, any single-codebase test code automatically runs in the CI against both WinUI 2 and 3! Finally, we can also easily write rich Markdown based documentation with embedded interactive samples that run right in your browser!"

That last bit refers to the online site for Windows Community Toolkit Labs, described as "a new way to build, contribute and collaborate." The Windows Community Toolkit Labs' WebApp was ported to the web with Uno Platform tech, and is pictured here:

[Click on image for larger view.] Windows Community Toolkit Labs (source: Microsoft).

Hawker said the team's goal for the revamp is to make the WCT more maintainable and easier to contribute to. It also obviates the need for developers to build the entire toolkit or sample app to get started, helping them to instead focus on individual components.

"Docs, samples, and tests for individual components are now all together in one scoped solution," Hawker said "This makes it simple to find where to add value to the code base without having to hunt around for where everything related to a feature belongs."

He invited developers to take advantage of the streamlined contribution process, noting that community members can contribute in a number of different ways. Traditional contributions typically include actually creating new components, editing documentation, fixing bugs and so on, but simply providing feedback on the team's work and new components also counts as contributing.

As far as those new components, Hawker highlighted the following as new contributions to WCT Labs:

  • MarqueeText – An auto-scrolling TextBlock
  • Segmented – A common pattern for quickly configuring a view or setting
  • Shimmer – A loading placeholder effect
  • TokenView – A selectable display of chits/tags/tokens
  • TransitionHelper – A 'magic' animation helper to transition between UI layouts

The team has also started to port existing WCT code to the new infrastructure, starting with some of the most common helpers such as AttachedDropShadow, Behaviors, Converters, Extensions, Primitive Panels, Sizers and Triggers.

Developers can discuss the project or provide feedback on GitHub, Discord and social media with the #WindowsCommunityToolkit hashtag.

Contributing to documentation or code, meanwhile, requires:

  • Taking a look at the staging repository and cloning it
  • Using the OpenSolution.bat file for a component and try building it following the steps in the readme
  • Back on GitHub, finding an unclaimed TODO item for a component
  • Comment to chime in with what you'd like to do, and we can help you get started towards your first Pull Request (PR)

"We hope this makes it easier to onboard in joining us on this Open Source journey," Hawker said. "We certainly welcome any assistance from folks like you in the process of updating our codebase; even if it's just contributing a section to the docs or a new sample for a component."

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