Back to Devexpress

DXTabControl.TabAdding Event

wpf-devexpress-dot-xpf-dot-core-dot-dxtabcontrol-30c86b3f.md

latest2.0 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public event TabControlTabAddingEventHandler TabAdding
vb
Public Event TabAdding As TabControlTabAddingEventHandler

Event Data

The TabAdding event's data class is TabControlTabAddingEventArgs. The following properties provide information specific to this event:

PropertyDescription
CancelGets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
ItemGets 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

Showing and Hiding Tab Items

Adding and Removing Tab Items

DXTabControl Class

DXTabControl Members

DevExpress.Xpf.Core Namespace