Microsoft.UI.Xaml.Controls Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides UI controls and classes for creating custom controls.
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
AnimatedIcon |
Represents an icon that displays and controls a visual that can animate in response to user interaction and visual state changes. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
AnimatedIconSource |
Represents a shareable object used to create an icon that displays and controls a visual that can animate in response to user interaction and visual state changes. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
AnimatedVisualPlayer |
An element that displays and controls an IAnimatedVisual. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
BackdropMaterial |
Helper class to apply a backdrop material to the root of the XAML content. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
BitmapIconSource |
Represents an icon source that uses a bitmap as its content. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
BreadcrumbBar |
The This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
BreadcrumbBarItem |
Represents an item in a BreadcrumbBar control. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
BreadcrumbBarItemClickedEventArgs |
Provides data for the BreadcrumbBar.ItemClicked event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ColorChangedEventArgs |
Provides event data for a ColorChanged event (see ColorPicker.ColorChanged and ColorSpectrum.ColorChanged). This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ColorPicker |
Represents a control that lets a user pick a color using a color spectrum, sliders, or text input. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
CommandBarFlyout |
Represents a specialized flyout that provides layout for AppBarButton, AppBarToggleButton, and AppBarSeparator controls. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
CoreWebView2InitializedEventArgs |
Provides data for the CoreWebView2Initialized event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
DropDownButton |
Represents a button that includes a chevron to indicate a menu can be opened. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
DropDownButtonAutomationPeer |
Exposes DropDownButton types to Microsoft UI Automation.. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ElementAnimator | |
ElementFactory | |
ElementFactoryGetArgs |
Represents the optional arguments to use when calling an implementation of the GetElement method of an IElementFactory object. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ElementFactoryRecycleArgs |
Represents the optional arguments to use when calling an implementation of the RecycleElement method of an IElementFactory object. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
Expander |
Represents a control that displays a header and has a collapsible body that displays content. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ExpanderCollapsedEventArgs |
Provides data for the Expander.Collapsed event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ExpanderExpandingEventArgs |
Provides data for the Expander.Expanding event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ExpanderTemplateSettings |
Provides calculated values that can be referenced as TemplatedParent sources when defining templates for an Expander. 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). |
FlowLayout | |
FlowLayoutState | |
FontIconSource |
Represents an icon source that uses a glyph from the specified font. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
IconSource |
Represents the base class for an icon source. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ImageIcon |
Represents an icon that uses an Image as its content. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ImageIconSource |
Represents an icon source that uses an image type as its content. The image types currently supported are .bmp, .gif, .jpg, .png, .wdp, and .tiff. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
IndexPath | |
InfoBadge |
Represents a control for indicating notifications, alerts, new content, or to attract focus to an area within an app. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
InfoBadgeTemplateSettings |
Provides calculated values that can be referenced as TemplatedParent sources when defining templates for an InfoBadge. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
InfoBar |
An This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
InfoBarClosedEventArgs |
Provides data for the InfoBar.Closed event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
InfoBarClosingEventArgs |
Provides data for the InfoBar.Closing event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
InfoBarTemplateSettings |
Provides calculated values that can be referenced as TemplatedParent sources when defining templates for an InfoBar. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ItemsRepeater |
Represents a data-driven collection control that incorporates a flexible layout system, custom views, and virtualization, with no default UI or interaction policies. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ItemsRepeaterElementClearingEventArgs |
Provides data for the ItemsRepeater.ElementClearing event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ItemsRepeaterElementIndexChangedEventArgs |
Provides data for the ItemsRepeater.ElementIndexChanged event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ItemsRepeaterElementPreparedEventArgs |
Provides data for the ItemsRepeater.ElementPrepared event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ItemsRepeaterScrollHost |
A helper to coordinate interaction between the ItemsRepeater and ScrollViewer. Use the ItemsRepeaterScrollHost if your app will run on versions of Windows prior Windows 10 1809 (Build 17763). If your app will only run on versions of Windows 1809 or higher, there is no need to use this control. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ItemsSourceView |
Represents a standardized view of the supported interactions between a given ItemsSource object and an ItemsRepeater control. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
Layout |
Represents the base class for an object that sizes and arranges child elements for a host. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
LayoutContext |
Represents the base class for an object that facilitates communication between an attached layout and its host container. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
LayoutPanel | |
MenuBar |
Represents a specialized container that presents a set of menus in a horizontal row, typically at the top of an app window. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
MenuBarItem |
Represents a top-level menu in a MenuBar control. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
MenuBarItemFlyout |
Represents the flyout of a MenuBarItem. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NavigationView |
Represents a container that enables navigation of app content. It has a header, a view for the main content, and a menu pane for navigation commands. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NavigationViewBackRequestedEventArgs |
Provides event data for the NavigationView.BackRequested event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NavigationViewDisplayModeChangedEventArgs |
Provides data for the NavigationView.DisplayModeChanged event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NavigationViewItem |
Represents the container for an item in a NavigationView control. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NavigationViewItemBase |
Base class for NavigationView menu items. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NavigationViewItemCollapsedEventArgs |
Provides event data for the NavigationViewItem.Collapsed event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NavigationViewItemExpandingEventArgs |
Provides event data for the NavigationViewItem.Expanding event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NavigationViewItemHeader |
Represents a header for a group of menu items in a NavigationView. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NavigationViewItemInvokedEventArgs |
Provides event data for the NavigationView.ItemInvoked event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NavigationViewItemSeparator |
Represents a line that separates menu items in a NavigationView. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NavigationViewList |
Represents a control that displays menu items in a NavigationView control. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NavigationViewPaneClosingEventArgs |
Provides data for the NavigationView.PaneClosing event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NavigationViewSelectionChangedEventArgs |
Provides data for the NavigationView.SelectionChanged event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NavigationViewTemplateSettings |
Provides calculated values that can be referenced as TemplatedParent sources when defining templates for a NavigationView. 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). |
NonVirtualizingLayout |
Represents the base class for an object that sizes and arranges child elements for a host and and does not support virtualization. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NonVirtualizingLayoutContext |
Represents the base class for layout context types that do not support virtualization. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NumberBox |
Represents a control that can be used to display and edit numbers. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NumberBoxValueChangedEventArgs |
Provides event data for the NumberBox.ValueChanged event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
PagerControl | |
PagerControlSelectedIndexChangedEventArgs | |
PagerControlTemplateSettings | |
ParallaxView |
Represents a container that associates the scroll position of a foreground element, such as a list, with a background element, such as an image. A 3D effect is created from each element having a different scrolling rate. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
PathIconSource |
Represents an icon source that uses a vector path as its content. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
PersonPicture |
Represents a control that displays the avatar image for a person, if one is available; if not, it displays the person's initials or a generic glyph. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
PersonPictureTemplateSettings |
Provides calculated values that can be referenced as TemplatedParent sources when defining templates for a PersonPicture 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). |
PipsPager |
Represents a control that enables navigation within linearly paginated content using a configurable collection of glyphs, each of which represents a single "page" within a limitless range. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
PipsPagerSelectedIndexChangedEventArgs |
Provides data for the PipsPager.SelectedIndexChanged event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
PipsPagerTemplateSettings |
Provides calculated values that can be referenced as TemplatedParent sources when defining templates for a PipsPager. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ProgressBar |
Represents a control that indicates the progress of an operation. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ProgressBarTemplateSettings |
Provides calculated values that can be referenced as TemplatedParent sources when defining templates for a ProgressBar 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). |
ProgressRing |
Represents a control that indicates the progress of an operation. The typical visual appearance is a ring-shaped "spinner". This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ProgressRingTemplateSettings |
Provides calculated values that can be referenced as TemplatedParent sources when defining templates for a ProgressRing 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). |
RadioButtons |
Represents a control that shows a group of related options from which one can be selected. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
RadioMenuFlyoutItem |
Represents a menu item that is mutually exclusive with other radio menu items in its group. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
RatingControl |
Represents a control that lets a user enter a star rating. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
RatingItemFontInfo |
Represents information about the visual states of font elements that represent a rating. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
RatingItemImageInfo |
Represents information about the visual states of image elements that represent a rating. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
RatingItemInfo |
Represents information about the visual states of the elements that represent a rating. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
RecyclePool | |
RecyclingElementFactory | |
RefreshContainer |
Represents a container control that provides a RefreshVisualizer and pull-to-refresh functionality for scrollable content. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
RefreshInteractionRatioChangedEventArgs |
Provides event data. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
RefreshRequestedEventArgs |
Provides event data for [RefreshRequested](This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). #-see-also) events. |
RefreshStateChangedEventArgs |
Provides event data for the RefreshVisualizer.RefreshStateChanged event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
RefreshVisualizer |
Represents a control that provides animated state indicators for content refresh. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
RevealListViewItemPresenter |
Represents a specialized ListViewItemPresenter that supports custom visual state management. Note No longer required. Please use ListViewItemPresenter in Windows 10 April 2018 Update (version 1803) and newer. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ScrollingAnchorRequestedEventArgs | |
ScrollingBringingIntoViewEventArgs | |
ScrollingScrollAnimationStartingEventArgs | |
ScrollingScrollCompletedEventArgs | |
ScrollingScrollOptions | |
ScrollingZoomAnimationStartingEventArgs | |
ScrollingZoomCompletedEventArgs | |
ScrollingZoomOptions | |
ScrollView | |
SelectionModel | |
SelectionModelChildrenRequestedEventArgs | |
SelectionModelSelectionChangedEventArgs | |
SelectTemplateEventArgs | |
SplitButton |
Represents a button with two parts that can be invoked separately. One part behaves like a standard button and the other part invokes a flyout. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
SplitButtonAutomationPeer |
Exposes SplitButton types to Microsoft UI Automation.. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
SplitButtonClickEventArgs |
Provides event data for the SplitButton.Click. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
StackLayout |
Represents an attached layout that arranges child elements into a single line that can be oriented horizontally or vertically. |
StackLayoutState | |
SwipeControl |
Represents a container that provides access to, and the ability to invoke, contextual commands through a basic touch interaction. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
SwipeItem |
Represents an individual command in a SwipeControl. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
SwipeItemInvokedEventArgs |
Provides event data for the SwipeItem.Invoked event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
SwipeItems |
Represents a collection of SwipeItem objects. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
SymbolIconSource |
Represents an icon source that uses a glyph from the Segoe MDL2 Assets font as its content. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TabView |
The TabView control is a way to display a set of tabs and their respective content. Tab controls are useful for displaying several pages (or documents) of content while giving a user the capability to rearrange, open, or close new tabs. Is this the right control? Use a TabView to help the user manage multiple app pages or documents within the same window. Do not use a TabView to display a static set of tabs that the user cannot rearrange, open, or close. Use a NavigationView (NavigationViewPaneDisplayMode of Top) instead. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TabViewItem |
Represents a single tab within a TabView. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TabViewItemTemplateSettings |
Gets an object that provides calculated values that can be referenced as {TemplateBinding} markup extension sources when defining templates for a TabViewItem control. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TabViewTabCloseRequestedEventArgs |
Provides data for a tab close event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TabViewTabDragCompletedEventArgs |
Provides data for the TabView.TabDragCompleted event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TabViewTabDragStartingEventArgs |
Provides data for the TabView.TabDragStarting event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TabViewTabDroppedOutsideEventArgs |
Provides data for the TabView.TabDroppedOutside event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TeachingTip |
A teaching tip is a notification flyout used to provide contextually relevant information. It supports rich content (including titles, subtitles, icons, images, and text) and can be configured for either explicit or light-dismiss. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TeachingTipClosedEventArgs |
Provides data for the TeachingTip.Closed event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TeachingTipClosingEventArgs |
Provides data for the TeachingTip.Closing event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TeachingTipTemplateSettings |
Provides calculated values that can be referenced as TemplatedParent sources when defining templates for a TeachingTip. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TextCommandBarFlyout |
Represents a specialized CommandBarFlyout that contains commands for editing text. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ToggleSplitButton |
Represents a button with two parts that can be invoked separately. One part behaves like a toggle button that can be on or off, while the other part invokes a flyout that contains additional options for the user to choose from. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ToggleSplitButtonAutomationPeer |
Exposes ToggleSplitButton types to Microsoft UI Automation.. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ToggleSplitButtonIsCheckedChangedEventArgs |
Provides event data for the ToggleSplitButton.IsCheckedChanged event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TreeView |
Represents a hierarchical list with expanding and collapsing nodes that contain nested items. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TreeViewCollapsedEventArgs |
Provides event data for the TreeView.Collapsed event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TreeViewDragItemsCompletedEventArgs |
Provides event data for the TreeView.DragItemsCompleted event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TreeViewDragItemsStartingEventArgs |
Provides event data for the TreeView.DragItemsStarting event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TreeViewExpandingEventArgs |
Provides event data for the TreeView.Expanding event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TreeViewItem |
Represents the container for an item in a TreeView control. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TreeViewItemInvokedEventArgs |
Provides event data for the TreeView.ItemInvoked event. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TreeViewItemTemplateSettings |
Provides calculated values that can be referenced as TemplatedParent sources when defining templates for a TreeViewItem 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). |
TreeViewList |
Represents a flattened list of tree view items so that operations such as keyboard navigation and drag-and-drop can be inherited from ListView. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TreeViewNode |
Represents a node in a TreeView control. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TreeViewSelectionChangedEventArgs | |
TwoPaneView |
Represents a container with two views that size and position content in the available space, either side-by-side or top-bottom. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
UniformGridLayout |
Positions elements sequentially from left to right or top to bottom in a wrapping layout. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
UniformGridLayoutState | |
VirtualizingLayout |
Represents the base class for an object that sizes and arranges child elements for a host and supports virtualization. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
VirtualizingLayoutContext |
Represents the base class for layout context types that support virtualization. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
WebView2 |
Represents an object that enables the hosting of web content. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
XamlControlsResources |
Default styles for the controls in the WinUI library. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
Structs
FlowLayoutAnchorInfo |
Interfaces
IAnimatedVisual |
An animated Composition.Visual that can be used by other objects, such as an AnimatedVisualPlayer or AnimatedIcon. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
IAnimatedVisual2 | |
IAnimatedVisualSource |
An animated Visual that can be used by other objects, such as an AnimatedVisualPlayer. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
IAnimatedVisualSource2 |
An animated Visual that can be used by other objects, such as an AnimatedIcon. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
IAnimatedVisualSource3 | |
IApplicationViewSpanningRects | |
IDynamicAnimatedVisualSource |
When implemented by an IAnimatedVisualSource, indicates to the player that the current animated visual should be discarded. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
IElementFactoryShim | |
IKeyIndexMapping |
Provides methods that support mapping between an item's unique identifier and index. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ISelfPlayingAnimatedVisual |
Enums
AnimationContext |
Specifies the various contexts where a control can be animated. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ColorPickerHsvChannel |
Defines constants for specifying which Hue-Saturation-Value (HSV) and Alpha channel values a slider sets 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). |
ColorSpectrumComponents |
Defines constants that specify how the Hue-Saturation-Value (HSV) color components are mapped onto the ColorSpectrum. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ColorSpectrumShape |
Defines constants that specify how the ColorSpectrum control is shown. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ControlsResourcesVersion |
Defines constants for specifying the version of WinUI control styles to use. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ElementRealizationOptions |
Defines constants that specify whether to suppress automatic recycling of the retrieved element or force creation of a new element. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ExpandDirection |
Defines constants that specify in which direction a control should expand. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
FlowLayoutLineAlignment | |
InfoBarCloseReason |
Defines constants that indicate the cause of the InfoBar closure. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
InfoBarSeverity |
Defines constants that indicate the criticality of the InfoBar that is shown. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NavigationViewBackButtonVisible |
Defines constants that specify whether the back button is visible in NavigationView. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NavigationViewDisplayMode |
Defines constants that specify how the pane is shown in a NavigationView. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NavigationViewOverflowLabelMode |
Defines constants that specify the label for the overflow button in a NavigationView. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NavigationViewPaneDisplayMode |
Defines constants that specify how and where the NavigationView pane is shown. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NavigationViewSelectionFollowsFocus |
Defines constants that specify whether item selection changes when keyboard focus changes in a NavigationView. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NavigationViewShoulderNavigationEnabled |
Defines constants that specify when gamepad bumpers can be used to navigate the top-level navigation items in a NavigationView. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NumberBoxSpinButtonPlacementMode |
Defines values that specify how the spin buttons used to increment or decrement the Value of a NumberBox are displayed. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
NumberBoxValidationMode |
Defines values that specify the input validation behavior of a NumberBox when invalid input is entered. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
PagerControlButtonVisibility | |
PagerControlDisplayMode | |
ParallaxSourceOffsetKind |
Defines constants that specify how the source offset values of a ParallaxView are interpreted. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
PipsPagerButtonVisibility |
Defines constants that specify how the navigation buttons of the PipsPager are displayed. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
PlayerAnimationOptimization |
Defines constants that specify how an AnimatedVisualPlayer caches animations when the player is idle. |
RefreshPullDirection |
Defines constants that specify the direction to pull a RefreshContainer to initiate a refresh. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
RefreshVisualizerOrientation |
Defines constants that specify the orientation of a RefreshVisualizer. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
RefreshVisualizerState |
Defines constants that specify the state of a RefreshVisualizer This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ScrollingAnimationMode | |
ScrollingChainMode | |
ScrollingContentOrientation | |
ScrollingInputKinds | |
ScrollingInteractionState | |
ScrollingRailMode | |
ScrollingScrollBarVisibility | |
ScrollingScrollMode | |
ScrollingSnapPointsMode | |
ScrollingZoomMode | |
StylesVersion | |
SwipeBehaviorOnInvoked |
Defines constants that specify how a SwipeControl behaves after a command is invoked. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
SwipeMode |
Defines constants that specify the effect of a swipe interaction. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TabViewCloseButtonOverlayMode |
Defines constants that describe the behavior of the close button contained within each TabViewItem. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TabViewWidthMode |
Defines constants that specify the width of the tabs. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TeachingTipCloseReason |
Defines constants that indicate the cause of the TeachingTip closure. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TeachingTipHeroContentPlacementMode |
Defines constants that indicate the preferred location of the HeroContent within a teaching tip. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TeachingTipPlacementMode |
Defines constants that indicate the preferred location of the TeachingTip teaching tip. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TeachingTipTailVisibility |
Defines constants that specify whether a teaching tip's Tail is visible or collapsed. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TreeViewSelectionMode |
Defines constants that specify the selection behavior for a TreeView instance. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TwoPaneViewMode |
Defines constants that specify how panes are shown in a TwoPaneView. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TwoPaneViewPriority |
Defines constants that specify which pane has priority in a TwoPaneView. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TwoPaneViewTallModeConfiguration |
Defines constants that specify how panes are shown in a TwoPaneView in tall mode. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
TwoPaneViewWideModeConfiguration |
Defines constants that specify how panes are shown in a TwoPaneView in wide mode. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
UniformGridLayoutItemsJustification |
Defines constants that specify how items are aligned on the non-scrolling or non-virtualizing axis. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
UniformGridLayoutItemsStretch |
Defines constants that specify how items are sized to fill the available space. This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
Delegates
ElementAnimationCompleted |
Examples
Tip
The WinUI 3 Gallery and WinUI 2 Gallery apps include interactive examples of most WinUI 3 and WinUI 2 controls, features, and functionality.
If installed already, open them by clicking the following links: WinUI 3 Gallery or WinUI 2 Gallery.
If they are not installed, you can download the WinUI 3 Gallery and the WinUI 2 Gallery from the Microsoft Store.
You can also get the source code for both from GitHub (use the main branch for WinUI 3 and the winui2 branch for WinUI 2).