Edit

CommunityToolkit.WinUI.Controls Namespace

Classes

Name Description
AccentColorConverter

Creates an accent color for a base color value.

Case

Case is the value container for the SwitchPresenter.

CaseCollection

An collection of Case to help with XAML interop.

ColorPicker

Presents a color spectrum, a palette of colors, and color channel sliders for user selection of a color.

ColorPickerButton

A Microsoft.UI.Xaml.Controls.DropDownButton which displays a color as its Content and it's Flyout is a ColorPicker.

ColorToHexConverter

Converts a color to a hex string and vice versa.

ConstrainedBox

The ConstrainedBox is a Microsoft.UI.Xaml.FrameworkElement control akin to Microsoft.UI.Xaml.Controls.Viewbox which can modify the behavior of it's child element's layout. ConstrainedBox restricts the available size for its content based on a scale factor, multiple factor, and/or a specific AspectRatio, in that order. This is performed as a layout calculation modification.

ContentSizer

The ContentSizer is a control which can be used to resize any element, usually its parent. If you are using a Microsoft.UI.Xaml.Controls.Grid, use GridSplitter instead.

ContrastBrushConverter

Gets a color, either black or white, depending on the brightness of the supplied color.

DockPanel

Defines an area where you can arrange child elements either horizontally or vertically, relative to each other.

EqualPanel

A panel that arranges its children in equal columns.

FluentColorPalette

Implements the standard Windows 10 color palette.

GridSplitter

Represents the control that redistributes space between columns or rows of a Grid control.

HeaderedContentControl

Provides the base implementation for all controls that contain single content and have a header.

HeaderedItemsControl

Represents a control that contains multiple items and has a header.

HeaderedTreeView

Represents a Microsoft.UI.Xaml.Controls.TreeView and has a header.

LayoutTransformControl

Control that implements support for transformations as if applied by LayoutTransform.

MetadataControl

Display MetadataItems separated by bullets.

NullToTransparentConverter

Value converter that converts null values to Transparent.

PropertySizer

The PropertySizer is a control which can be used to manipulate the value of another double based property. For instance manipulating the OpenPaneLength of a NavigationView control. If you are using a Microsoft.UI.Xaml.Controls.Grid, use GridSplitter instead.

RangeChangedEventArgs

Event args for a value changing event

RangeSelector

RangeSelector is a "double slider" control for range values.

Segmented

A control that displays a set of items that can be selected by the user.

SegmentedItem

Represents an item in a Segmented control.

SegmentedMarginConverter

A converter that returns a margin based on the position of the item in a segmented control.

SettingsCard

This is the base control to create consistent settings experiences, inline with the Windows 11 design language. A SettingsCard can also be hosted within a SettingsExpander.

SettingsCardAutomationPeer

AutomationPeer for SettingsCard

SettingsExpander

The SettingsExpander is a collapsable control to host multiple SettingsCards.

SettingsExpanderAutomationPeer

AutomationPeer for SettingsExpander

SettingsExpanderItemStyleSelector

Microsoft.UI.Xaml.Controls.StyleSelector used by SettingsExpander to choose the proper SettingsCard container style (clickable or not).

SizerBase

Base class for splitting/resizing type controls like GridSplitter and ContentSizer. Acts similar to an enlarged Microsoft.UI.Xaml.Controls.Primitives.Thumb type control, but with keyboard support. Subclasses should override the various abstract methods here to implement their behavior.

StaggeredLayout

Arranges child elements into a staggered grid pattern where items are added to the column that has used least amount of space.

StaggeredPanel

Arranges child elements into a staggered grid pattern where items are added to the column that has used least amount of space.

StyleExtensions

Helper class for setting a ResourceDictionary on a Style.

SwitchPresenter

The SwitchPresenter is a Microsoft.UI.Xaml.Controls.ContentPresenter which can allow a developer to mimic a switch statement within XAML. When provided a set of Cases and a Value, it will pick the matching Case with the corresponding Value.

TabbedCommandBar

A basic TabbedCommandBar control that houses TabbedCommandBarItems

TabbedCommandBarItem

A Microsoft.UI.Xaml.Controls.CommandBar to be displayed in a TabbedCommandBar

TabbedCommandBarItemTemplateSelector

Microsoft.UI.Xaml.Controls.DataTemplateSelector used by TabbedCommandBar for determining the style of normal vs. contextual TabbedCommandBarItems.

TokenItemAddingEventArgs

Event arguments for TokenItemAdding event.

TokenItemRemovingEventArgs

Event arguments for TokenItemRemoving event.

TokenizingTextBox

A text input control that auto-suggests and displays token items.

TokenizingTextBoxItem

A control that manages as the item logic for the TokenizingTextBox control.

TokenizingTextBoxStyleSelector

Microsoft.UI.Xaml.Controls.StyleSelector used by TokenizingTextBox to choose the proper TokenizingTextBoxItem container style (text entry or token).

UniformGrid

The UniformGrid control presents information within a Grid with even spacing.

WrapLayout

Arranges elements by wrapping them to fit the available space. When Orientation is set to Orientation.Horizontal, element are arranged in rows until the available width is reached and then to a new row. When Orientation is set to Orientation.Vertical, element are arranged in columns until the available height is reached.

WrapPanel

WrapPanel is a panel that position child control vertically or horizontally based on the orientation and when max width / max height is reached a new row (in case of horizontal) or column (in case of vertical) is created to fit new controls.

Structs

Name Description
AspectRatio

The AspectRatio structure is used by the ConstrainedBox control to define a specific ratio to restrict its content.

MetadataItem

An item to display in MetadataControl.

Interfaces

Name Description
IColorPalette

Interface to define a color palette.

ITokenStringContainer

Provides access to unresolved token string values within the tokenizing text box control

Enums

Name Description
ColorChannel

Defines a specific channel within a color representation.

ColorRepresentation

Defines how colors are represented.

ContentAlignment

The alignment of Content.

Dock

Specifies the Dock position of a child element that is inside a DockPanel.

GridSplitter.GridResizeBehavior

Enum to indicate what Columns or Rows the GridSplitter resizes

GridSplitter.GridResizeDirection

Enum to indicate whether GridSplitter resizes Columns or Rows

RangeSelectorProperty

Enumeration used to determine what value triggered ValueChanged event on the RangeSelector

StaggeredLayoutItemsStretch

Defines constants that specify how items are sized to fill the available space in a StaggeredLayout.

StretchChild

Options for how to calculate the layout of Microsoft.UI.Xaml.Controls.WrapGrid items.