DXTabControl.TabAdding Event

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

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v20.1.dll

Declaration

public event TabControlTabAddingEventHandler TabAdding
Public Event TabAdding As TabControlTabAddingEventHandler

Event Data

The TabAdding event's data class is TabControlTabAddingEventArgs. 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.
Item Gets or sets the tab item.

Remarks

To prevent a tab item from being added, set the event's Cancel parameter to true. After an item has been added, the DXTabControl.TabAdded event fires.

See Also