This repository contains C++ ports of CommunityToolkit components.
The goal is to allow seamless usage of these controls in WinUI 3 / C++ projects.
You can install the C++ WinUI Community Toolkit packages via NuGet (it also supports .NET):
Note: When using the C# version, make sure to set the <TargetFramework> to:
<TargetFramework>net8.0-windows10.0.26100.0</TargetFramework>MarkdownTextBlock supports syntax highlighting for C#, C++, XML, JSON, and Shell.
ValueStringFormat property does not support .NET string format syntax and only supports std::format syntax.
- Native C++/WinRT implementation for WinUI 3.
- API style compatible with CommunityToolkit controls.
- Requires Visual Studio 2022 or later for compilation.
- To build
XamlToolkit.Labs.WinUI, you need to install tree-sitter via vcpkg:
vcpkg install tree-sitter:x64-windows-staticMarkdown parsing uses md4c (https://github.com/mity/md4c).
Since vcpkg does not support configuring UTF-16 character set for md4c, the project directly includes the md4c source code.
Add nuget packages to your project.
Add an XML namespace like this in your XAML
xmlns:ui="using:XamlToolkit.WinUI"
xmlns:controls="using:XamlToolkit.WinUI.Controls"
xmlns:convertors="using:XamlToolkit.WinUI.Convertors"
xmlns:labs="using:XamlToolkit.Labs.WinUI"
xmlns:media="using:XamlToolkit.WinUI.Media"























