Skip to main content

DXTabControl.TabHidden Event

Occurs after the tab item has been hidden.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public event TabControlTabHiddenEventHandler TabHidden

Event Data

The TabHidden event's data class is TabControlTabHiddenEventArgs.

Remarks

A tab item can be hidden by an end-user by clicking the close button displayed within its header. It can also be hidden in code, using the DXTabControl.HideTabItem method. A hidden tab item is not disposed, and can be displayed later. To learn more, see Showing and Hiding Tab Items.

An index of the tab item that has been hidden is returned by the event parameter’s TabControlTabHiddenEventArgs.TabIndex property. To prevent tab items from being hidden, handle the DXTabControl.TabHiding event, which is fired before the item is hidden.

After the tab item has been shown, the DXTabControl.TabShown event is fired.

Handle the DXTabControl.SelectionChanging or DXTabControl.SelectionChanged event to cancel selecting a tab item or respond to this action respectively. For details, see Header Menu.

See Also