Windows.UI.Xaml.Controls.Primitives Namespace

Defines classes that represent the component parts of UI controls, or otherwise support the control composition model. Also defines interfaces for control patterns such as snapping and selection.

Classes

AppBarButtonTemplateSettings

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.AppBarButtonTemplateSettings.

AppBarTemplateSettings

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.AppBarTemplateSettings.

AppBarToggleButtonTemplateSettings

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.AppBarToggleButtonTemplateSettings.

ButtonBase

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.ButtonBase.

CalendarPanel

Represents a panel that contains a calendar.

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.CalendarPanel.

CalendarViewTemplateSettings

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.CalendarViewTemplateSettings.

CarouselPanel

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.CarouselPanel.

ColorPickerSlider

Represents a slider in a ColorPicker control.

ColorSpectrum

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

ComboBoxTemplateSettings

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.ComboBoxTemplateSettings.

CommandBarFlyoutCommandBar

Represents a specialized command bar used in a CommandBarFlyout.

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.

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.CommandBarTemplateSettings.

DragCompletedEventArgs

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.DragCompletedEventArgs.

DragDeltaEventArgs

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.DragDeltaEventArgs.

DragStartedEventArgs

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.DragStartedEventArgs.

FlyoutBase

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.FlyoutBase.

FlyoutBaseClosingEventArgs

Provides data for the FlyoutBase.Closing event

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.FlyoutBaseClosingEventArgs.

FlyoutShowOptions

Represents the options used to show a flyout.

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.FlyoutShowOptions.

GeneratorPositionHelper

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.GeneratorPositionHelper.

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.

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.GridViewItemPresenter.

GridViewItemTemplateSettings

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.GridViewItemTemplateSettings.

ItemsChangedEventArgs

Provides data for the ItemsChanged event.

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.ItemsChangedEventArgs.

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.

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.JumpListItemBackgroundConverter.

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.

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.JumpListItemForegroundConverter.

LayoutInformation

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.LayoutInformation.

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.

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.ListViewItemPresenter.

ListViewItemTemplateSettings

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.ListViewItemTemplateSettings.

LoopingSelector

An infinitely scrolling selection control.

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.LoopingSelector.

LoopingSelectorItem

An item that is contained in a LoopingSelector control.

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.LoopingSelectorItem.

LoopingSelectorPanel

A panel for positioning and arranging child LoopingSelector elements.

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.LoopingSelectorPanel.

MenuFlyoutItemTemplateSettings

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.MenuFlyoutItemTemplateSettings.

MenuFlyoutPresenterTemplateSettings

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.MenuFlyoutPresenterTemplateSettings.

NavigationViewItemPresenter

Represents the visual elements of a NavigationViewItem.

OrientedVirtualizingPanel

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.OrientedVirtualizingPanel.

PickerFlyoutBase

Represents a base class for picker controls.

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.PickerFlyoutBase.

PivotHeaderItem

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.PivotHeaderItem.

PivotHeaderPanel

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.PivotHeaderPanel.

PivotPanel

Displays the items in a Pivot control.

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.PivotPanel.

Popup

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.Popup.

ProgressBarTemplateSettings

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.ProgressBarTemplateSettings.

ProgressRingTemplateSettings

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.ProgressRingTemplateSettings.

RangeBase

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.RangeBase.

RangeBaseValueChangedEventArgs

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.RangeBaseValueChangedEventArgs.

RepeatButton

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.RepeatButton.

ScrollBar

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.ScrollBar.

ScrollEventArgs

Provides data for the Scroll event.

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.ScrollEventArgs.

Selector

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.Selector.

SelectorItem

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.SelectorItem.

SettingsFlyoutTemplateSettings

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

SplitViewTemplateSettings

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.SplitViewTemplateSettings.

Thumb

Represents a control that can be dragged by the user.

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.Thumb.

TickBar

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.TickBar.

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.

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.ToggleButton.

ToggleSwitchTemplateSettings

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.ToggleSwitchTemplateSettings.

ToolTipTemplateSettings

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

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.ToolTipTemplateSettings.

Structs

GeneratorPosition

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

Equivalent WinUI struct: GeneratorPosition.

Interfaces

IScrollSnapPointsInfo

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

Equivalent WinUI interface: Microsoft.UI.Xaml.Controls.Primitives.IScrollSnapPointsInfo.

Enums

AnimationDirection

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

Equivalent WinUI enum: AnimationDirection.

ComponentResourceLocation

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

Equivalent WinUI enum: ComponentResourceLocation.

EdgeTransitionLocation

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

Equivalent WinUI enum: EdgeTransitionLocation.

FlyoutPlacementMode

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

Equivalent WinUI enum: FlyoutPlacementMode.

FlyoutShowMode

Defines constants that specify how a flyout behaves when shown.

Equivalent WinUI enum: Microsoft.UI.Xaml.Controls.Primitives.FlyoutShowMode.

GeneratorDirection

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

Equivalent WinUI enum: GeneratorDirection.

GroupHeaderPlacement

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

Equivalent WinUI enum: GroupHeaderPlacement.

ListViewItemPresenterCheckMode

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

Equivalent WinUI enum: ListViewItemPresenterCheckMode.

PlacementMode

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

Equivalent WinUI enum: PlacementMode.

ScrollEventType

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

Equivalent WinUI enum: ScrollEventType.

ScrollingIndicatorMode

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

Equivalent WinUI enum: ScrollingIndicatorMode.

SliderSnapsTo

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

Equivalent WinUI enum: SliderSnapsTo.

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.

Equivalent WinUI enum: SnapPointsAlignment.

TickPlacement

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

Equivalent WinUI enum: TickPlacement.

Delegates

DragCompletedEventHandler

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

Equivalent WinUI delegate: Microsoft.UI.Xaml.Controls.Primitives.DragCompletedEventHandler.

DragDeltaEventHandler

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

Equivalent WinUI delegate: Microsoft.UI.Xaml.Controls.Primitives.DragDeltaEventHandler.

DragStartedEventHandler

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

Equivalent WinUI delegate: Microsoft.UI.Xaml.Controls.Primitives.DragStartedEventHandler.

ItemsChangedEventHandler

Represents the method that will handle the ItemsChanged event.

Equivalent WinUI delegate: Microsoft.UI.Xaml.Controls.Primitives.ItemsChangedEventHandler.

RangeBaseValueChangedEventHandler

Represents the method that will handle a ValueChanged event.

Equivalent WinUI delegate: Microsoft.UI.Xaml.Controls.Primitives.RangeBaseValueChangedEventHandler.

ScrollEventHandler

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

Equivalent WinUI delegate: Microsoft.UI.Xaml.Controls.Primitives.ScrollEventHandler.

See also