DXTabControl.TabRemoving Event
In This Article
Fires before a tab item is removed, and allows you to prevent this action.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
#Declaration
public event TabControlTabRemovingEventHandler TabRemoving
#Event Data
The TabRemoving event's data class is TabControlTabRemovingEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Cancel |
Gets or sets a value indicating whether the event should be canceled.
Inherited from Cancel |
Is |
Gets a value which indicates whether the associated event is part of a drag-and-drop operation. |
Item |
Gets the tab item that raised the event.
Inherited from Tab |
Tab |
Gets the index of the tab that raised the event.
Inherited from Tab |
#Remarks
To prevent a tab item from being removed, set the event’s Cancel parameter to true. After an item has been removed, the DXTabControl.TabRemoved event fires.
See Also