Events
This article lists the events specific for the TabControl.
The DropDownOpened
event is raised when the drag drop menu of the control is opened. The event arguments are of type DropDownEventArgs
.
The DropDownClosed
event is raised when the drag drop menu of the control is closed. The event arguments are of type DropDownEventArgs
.
DropDownOpened event handler
ItemReordered
event is raised when an item is reordered while dragging. In order for this event to be raised, the AllowDragReorder
property needs to be set to true
. The event arguments are of type ItemReorderedEventArgs
.
ItemReordered event handler
Tab Close Events
TabControl comes with several events related to its tab (closing)/devtools/winui/controls/radtabcontrol/pinandclose functionality.
The PreviewTabClosed
event is raised when a tab item is about to be closed. The event arguments are of type PreviewTabChangedEventArgs
.
PreviewTabClosed event handler
The
TabClosed
event is raised when a tab item is closed. The event arguments are of type TabChangedEventArgs
.
TabClosed event handler
Pin Tab Events
TabControl comes with several events related to its tab (pin/unpin)/devtools/winui/controls/radtabcontrol/pinandclose functionality.
The PreviewTabPinned
event is raised when a tab item is about to be pinned. The event arguments are of type PreviewTabChangedEventArgs
.
PreviewTabPinned event handler
TabPinned
event is raised when a tab item is pinned. The event arguments are of type TabChangedEventArgs
.
TabPinned event handler
PreviewTabUnpinned
event is raised when a tab item is about to be unpinned. The event arguments are of type PreviewTabChangedEventArgs
.
PreviewTabUnpinned event handler
TabUnpinned
event is raised when a tab item is unpinned. The event arguments are of type TabChangedEventArgs
.
TabUnpinned event handler
Selection Events
TabControl provides two events in regards to its selection: PreviewSelectionChanged
and SelectionChanged
.
Handling the PreviewSelectionChanged Event
SelectionChanged
event is raised after the selection has already completed.