CommunityToolkit.WinUI.UI.Controls.Primitives
This library provides controls for use in XAML which don't provide their own style. It is a part of the Windows Community Toolkit. Controls: - AdaptiveGridView: Presents items in an evenly-spaced set of columns to fill the total available space. - ConstrainedBox: Constrain child element by aspect ratio, scale, or multiple. - DockPanel: Define areas where you can arrange child elements either horizontally or vertically, relative to each other. - StaggeredLayout: Layout of items in a column approach where an item will be added to whichever column has used the least amount of space. - StaggeredPanel: Layout of items in a column approach where an item will be added to whichever column has used the least amount of space. - SwitchPresenter: A presenter which can act as a switch statement for layout providing alternate layouts based on a value. - UniformGrid: Presents items in an evenly-spaced set of rows or columns to fill the total available display space. - WrapLayout: Positions child elements in sequential position from left to right and breaks content to the next line. - WrapPanel: Positions child elements in sequential position from left to right and breaks content to the next line.
Install
dotnet add package CommunityToolkit.WinUI.UI.Controls.Primitives --version 7.1.2
Install-Package CommunityToolkit.WinUI.UI.Controls.Primitives -Version 7.1.2
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls.Primitives" Version="7.1.2" />
Frameworks
Dependencies
Adoption guide
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
NuGet marks this package as deprecated and points to CommunityToolkit.WinUI.Controls.Primitives as an alternative.
Compatibility metadata lists 1 target framework; confirm the exact target used by your application.
This version is unlisted. Prefer a listed release unless you deliberately need this exact version for reproducibility.
How to read this guidance
Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.
Useful next steps
Move from package metadata to a concrete selection or review workflow.