Share via


Microsoft.UI.Xaml.Controls.Primitives Namespace

Defines the components that comprise WinUI controls, or otherwise support the control composition model.

Note

This namespace requires the Microsoft.UI.Xaml.Controls NuGet package, a part of the Microsoft Windows UI Library.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

Classes

AutoSuggestBoxHelper

Represents a helper object for loading and displaying a list of suggestions.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

ColorPickerSlider

Represents a slider in a ColorPicker control.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

ColorSpectrum

Represents a control that lets a user choose a color from a visual spectrum.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

ColumnMajorUniformToLargestGridLayout

Represents a layout grid where each cell is sized uniformly based on the largest cell in the grid required to accommodate its content.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

ComboBoxHelper

Provides ComboBox helper methods for the XAML compiler.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

CommandBarFlyoutCommandBar

Represents a specialized command bar used in a CommandBarFlyout.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

CommandBarFlyoutCommandBarAutomationProperties

Enables getting or setting specific automation properties for the CommandBarFlyoutCommandBar.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

CommandBarFlyoutCommandBarTemplateSettings

Provides calculated values that can be referenced as TemplatedParent sources when defining templates for a CommandBarFlyout control. Not intended for general use.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

CornerRadiusFilterConverter

Converts an existing CornerRadius struct to a new CornerRadius struct, with filters applied to extract only the specified fields, leaving the others set to 0.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

CornerRadiusToThicknessConverter

Converts a CornerRadius to Thickness and also applies filters to extract only the specified fields, leaving the others set to 0.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

InfoBarPanel

Represents a panel that arranges its items horizontally if there is available space, otherwise vertically.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

MonochromaticOverlayPresenter

Enables visually overriding the colors of items in a grid with a monochromatic scheme or hue.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

NavigationViewItemPresenter

Represents the visual elements of a NavigationViewItem.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

NavigationViewItemPresenterTemplateSettings

Provides calculated values that can be referenced as TemplatedParent sources when defining templates for a NavigationViewItemPresenter control. Not intended for general use.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

RepeatedScrollSnapPoint
RepeatedZoomSnapPoint
ScrollControllerAddScrollVelocityRequestedEventArgs
ScrollControllerInteractionRequestedEventArgs
ScrollControllerScrollByRequestedEventArgs
ScrollControllerScrollToRequestedEventArgs
ScrollPresenter
ScrollSnapPoint
ScrollSnapPointBase
SnapPointBase
TabViewListView

Represents the ListView corresponding to the TabStrip within the TabView.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

ZoomSnapPoint
ZoomSnapPointBase

Interfaces

IAutomationPropertiesStatics9
IPopup4
IScrollController

Enums

CornerRadiusFilterKind

Defines constants that specify the filter type for a CornerRadiusFilterConverter instance.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

CornerRadiusToThicknessConverterKind

Defines constants that specify the filter type for a CornerRadiusToThicknessConverter instance.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

PopupPlacementMode

Defines constants that specify the preferred location for positioning a popup relative to a visual element.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

ScrollSnapPointsAlignment

Examples

See the XAML Controls Gallery sample app for examples of WinUI features and controls.

If you have the XAML Controls Gallery app installed, open the app to see the controls in action.

If you don't have the XAML Controls Gallery app installed, get the WinUI 2.x version from the Microsoft Store.

You can also view, clone, and build the XAML Controls Gallery source code from GitHub (switch to the WinUI 3 Preview branch for WinUI 3 Preview controls and features).