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.TabShown Event

Occurs after the tab item has been shown.

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public event TabControlTabShownEventHandler TabShown

#Event Data

The TabShown event's data class is TabControlTabShownEventArgs.

#Remarks

A hidden tab item can be shown using the DXTabControl.ShowTabItem method.

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

After the tab item has been hidden, the DXTabControl.TabHidden event is fired. To learn more, see Showing and Hiding Tab Items.

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

See Also