Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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