Microsoft.UI.Xaml.Controls.Primitives Namespace

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

Classes

AppBarButtonTemplateSettings

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

AppBarTemplateSettings

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

AppBarToggleButtonTemplateSettings

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

AutoSuggestBoxHelper

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

ButtonBase

Represents the base class for all button controls, such as Button, RepeatButton, and HyperlinkButton.

CalendarPanel

Represents a panel that contains a calendar.

CalendarViewTemplateSettings

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

CarouselPanel

Represents a panel that arranges its items in a line and circles around to the first item when the last item is reached.

ColorPickerSlider

Represents a slider in a ColorPicker control.

ColorSpectrum

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

ColumnMajorUniformToLargestGridLayout

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

ComboBoxHelper

Provides ComboBox helper methods for the XAML compiler.

ComboBoxTemplateSettings

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

CommandBarFlyoutCommandBar

Represents a specialized command bar used in a CommandBarFlyout.

CommandBarFlyoutCommandBarAutomationProperties

Enables getting or setting specific automation properties for the CommandBarFlyoutCommandBar.

CommandBarFlyoutCommandBarTemplateSettings

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

CommandBarTemplateSettings

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

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.

CornerRadiusToThicknessConverter

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

DragCompletedEventArgs

Provides data for the DragCompleted event that occurs when a user completes a drag operation with the mouse of a Thumb control.

DragDeltaEventArgs

Provides data for the DragDelta event that occurs one or more times when a user drags a Thumb control with the mouse.

DragStartedEventArgs

Provides data for the DragStarted event that occurs when a user drags a Thumb control with the mouse.

FlyoutBase

Represents the base class for flyout controls, such as Flyout and MenuFlyout.

FlyoutBaseClosingEventArgs

Provides data for the FlyoutBase.Closing event

FlyoutShowOptions

Represents the options used to show a flyout.

GeneratorPositionHelper

Provides utility methods for evaluating and creating GeneratorPosition structure values. C# and Microsoft Visual Basic code should use members of GeneratorPosition instead.

GridViewItemPresenter

Represents the visual elements of a GridViewItem. When developing for Windows 10, use ListViewItemPresenter instead of GridViewItemPresenter in your item container style, both for ListView and for GridView. If you edit a copy of the default item container styles then you will get the correct type.

GridViewItemTemplateSettings

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

InfoBarPanel

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

ItemsChangedEventArgs

Provides data for the ItemsChanged event.

JumpListItemBackgroundConverter

Provides the appropriate background Brush for elements in the item template of a jump list to bind to. The Brush reflects the current theme and accent color, and it's also used to shade empty-group jump list items. By default, the Brush matches built-in apps, but you can override that to suit your design needs using the Enabled and Disabled properties.

JumpListItemForegroundConverter

Provides the appropriate foreground Brush for elements in the item template of a jump list to bind to. The Brush reflects the current theme and accent color, and it's also used to shade empty-group jump list items. By default, the Brush matches built-in apps, but you can override that to suit your design needs using the Enabled and Disabled properties.

LayoutInformation

Defines methods that provide additional information about the layout of an element.

ListViewItemPresenter

Represents the visual elements of a ListViewItem. When developing for Windows 10, use ListViewItemPresenter instead of GridViewItemPresenter in your item container style, both for ListView and for GridView. If you edit a copy of the default item container styles then you will get the correct type.

ListViewItemTemplateSettings

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

LoopingSelector

An infinitely scrolling selection control.

LoopingSelectorItem

An item that is contained in a LoopingSelector control.

LoopingSelectorPanel

A panel for positioning and arranging child LoopingSelector elements.

MenuFlyoutItemTemplateSettings

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

MenuFlyoutPresenterTemplateSettings

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

MonochromaticOverlayPresenter

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

NavigationViewItemPresenter

Represents the visual elements of a NavigationViewItem.

NavigationViewItemPresenterTemplateSettings

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

OrientedVirtualizingPanel

Adds infrastructure (provides base class) for virtualizing layout containers that support spatial cues, such as VirtualizingStackPanel and WrapGrid.

PickerFlyoutBase

Represents a base class for picker controls.

PivotHeaderItem

Represents a header item in the specialized pivot header items control.

PivotHeaderPanel

Displays the header text of the items in a Pivot control.

PivotPanel

Displays the items in a Pivot control.

Popup

Displays content on top of existing content, within the bounds of the application window.

RangeBase

Represents an element that has a value within a specific range, such as the ProgressBar, ScrollBar, and Slider controls.

RangeBaseValueChangedEventArgs

Provides data about a change in range value for the ValueChanged event.

RepeatButton

Represents a control that raises its Click event repeatedly when it is pressed and held.

RepeatedScrollSnapPoint

Represents multiple equidistant points that scrolled content can snap to.

RepeatedZoomSnapPoint

Represents multiple equidistant points that zoomed content can snap to.

ScrollBar

Represents a control that provides a scroll bar that has a sliding Thumb whose position corresponds to a value.

ScrollControllerAddScrollVelocityRequestedEventArgs

Provides data for the IScrollController.AddScrollVelocityRequested event.

ScrollControllerPanRequestedEventArgs

Provides data for the IScrollControllerPanningInfo.PanRequested event.

ScrollControllerScrollByRequestedEventArgs

Provides data for the IScrollController.ScrollByRequested event.

ScrollControllerScrollToRequestedEventArgs

Provides data for the IScrollController.ScrollToRequested event.

ScrollEventArgs

Provides data for the Scroll event.

ScrollPresenter

Represents a primitive container that provides scroll, pan, and zoom support for its content.

ScrollSnapPoint

Represents a single point that scrolled content can snap to.

ScrollSnapPointBase

Represents the base class for scrolling snap points used by a ScrollPresenter or other scrolling control.

Selector

Represents a control that enables a user to select an item from a collection of items.

SelectorItem

Provides a base class for item types in a selection control.

SnapPointBase

Represents the base class for scrolling and zooming snap points used by a ScrollPresenter or other scrolling control.

SplitViewTemplateSettings

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

TabViewListView

Represents the ListView corresponding to the TabStrip within the TabView.

Thumb

Represents a control that can be dragged by the user.

TickBar

Represents a tick mark on a Slider control. Not intended for general use.

ToggleButton

Represents a control that a user can select (check) or clear (uncheck). Base class for controls that can switch states, such as CheckBox and RadioButton.

ToggleSwitchTemplateSettings

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

ToolTipTemplateSettings

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

ZoomSnapPoint

Represents a single point that zoomed content can snap to.

ZoomSnapPointBase

Represents the base class for zooming snap points used by a ScrollPresenter or other scrolling control.

Structs

GeneratorPosition

GeneratorPosition is used to describe the position of an item that is managed by ItemContainerGenerator.

Interfaces

IScrollController

Specifies a contract for scrollbar-like widgets that can set the scroll offsets of the content in a scrolling control.

IScrollControllerPanningInfo

Encapsulates information related to UI-thread-independent panning that an IScrollController implementation may support.

IScrollSnapPointsInfo

Describes snap point behavior for objects that contain and present items.

Enums

AnimationDirection

Defines constants that specify the direction in which an animation translates from start to end.

ComponentResourceLocation

Defines constants that specify the lookup behavior for references to application resources by Uniform Resource Identifier (URI) path.

CornerRadiusFilterKind

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

CornerRadiusToThicknessConverterKind

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

EdgeTransitionLocation

Defines constants that specify the location of edge transitions for edge UI, such as app bars.

FlyoutPlacementMode

Defines constants that specify the preferred location for positioning a FlyoutBase derived control relative to a visual element.

FlyoutShowMode

Defines constants that specify how a flyout behaves when shown.

GeneratorDirection

Defines constants that specify the direction in which item generation will occur.

GroupHeaderPlacement

Declares where the header is placed in relation to the items in an items grouping control.

ListViewItemPresenterCheckMode

Defines constants that specify the style of checkbox shown to select an item.

ListViewItemPresenterSelectionIndicatorMode

Defines constants that specify how the selection indicator is shown on a list view item.

PlacementMode

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

PopupPlacementMode

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

ScrollEventType

Defines constants that specify the type of Scroll event that occurred.

ScrollingIndicatorMode

Defines constants that specify input-specific transition animations that are part of the default template for ScrollBar.

ScrollSnapPointsAlignment

Defines constants that specify options for snap point alignment relative to a viewport edge. Which edge depends on the orientation of the object where the alignment is applied.

SliderSnapsTo

Defines constants that specify how a Slider or related range control class conforms the indicator position to its steps or tick marks.

SnapPointsAlignment

Defines constants that specify options for snap point alignment relative to an edge. Which edge depends on the orientation of the object where the alignment is applied.

TickPlacement

Defines constants that specify the position of tick marks in a Slider in relation to the track that the control implements.

Delegates

DragCompletedEventHandler

Represents the method that will handle the DragCompleted event of a Thumb.

DragDeltaEventHandler

Represents the method that will handle the DragDelta event of a Thumb.

DragStartedEventHandler

Represents the method that will handle the DragStarted event of a Thumb.

ItemsChangedEventHandler

Represents the method that will handle the ItemsChanged event.

RangeBaseValueChangedEventHandler

Represents the method that will handle a ValueChanged event.

ScrollEventHandler

Represents the method that will handle the Scroll event of a ScrollBar.