Back to Devexpress

DXTabControl.TabRemoving Event

wpf-devexpress-dot-xpf-dot-core-dot-dxtabcontrol-2af23dcd.md

latest2.6 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public event TabControlTabRemovingEventHandler TabRemoving
vb
Public Event TabRemoving As TabControlTabRemovingEventHandler

Event Data

The TabRemoving event's data class is TabControlTabRemovingEventArgs. The following properties provide information specific to this event:

PropertyDescription
CancelGets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
IsDragDropGets a value which indicates whether the associated event is part of a drag-and-drop operation.
ItemGets the tab item that raised the event. Inherited from TabControlCommonCancelEventArgsBase.
TabIndexGets 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

Showing and Hiding Tab Items

Adding and Removing Tab Items

DXTabControl Class

DXTabControl Members

DevExpress.Xpf.Core Namespace