Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

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.

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