Skip to main content

DXTabControl.TabRemoving Event

Fires before a tab item is removed, and allows you to prevent this action.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v24.1.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 CancelEventArgs.
IsDragDrop 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 TabControlCommonCancelEventArgsBase.
TabIndex Gets the index of the tab that raised the event. Inherited from TabControlCommonCancelEventArgsBase.

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