A newer version of this page is available. Switch to the current version.

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


public event TabControlTabAddingEventHandler TabAdding

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.


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