Skip to main content
A newer version of this page is available. .

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, 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