Skip to main content

DXTabControl.TabShown Event

Occurs after the tab item has been shown.

Namespace: DevExpress.Xpf.Core

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

#Declaration

public event TabControlTabShownEventHandler TabShown

#Event Data

The TabShown event's handler receives an argument of the TabControlTabShownEventArgs type. The following properties provide information specific to this event:

Property Description
TabIndex Gets the index of the processed tab item.

#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 respond to this action respectively. For details, see Navigating Between Tab Items.

See Also