Jaa


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.

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.

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.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.Primitives.ColorPickerSlider (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.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.Primitives.ColorSpectrum (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

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.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.Primitives.CommandBarFlyoutCommandBar (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.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.Primitives.CommandBarFlyoutCommandBarTemplateSettings (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

CommandBarTemplateSettings

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

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.

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.

NavigationViewItemPresenter

Represents the visual elements of a NavigationViewItem.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.Primitives.NavigationViewItemPresenter (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

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.

ProgressBarTemplateSettings

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

ProgressRingTemplateSettings

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

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.

ScrollBar

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

ScrollEventArgs

Provides data for the Scroll event.

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.

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.

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.

Structs

GeneratorPosition

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

Interfaces

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.

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.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.Primitives.PopupPlacementMode (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

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.

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.

See also