DXTabControl.SelectionChanged Event
Occurs after a tab item has been selected.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v14.2.dll
#Declaration
#Event Data
The SelectionChanged event's handler receives an argument of the TabControlSelectionChangedEventArgs type. The following properties provide information specific to this event:
Property | Description |
---|---|
New |
Gets the index of the currently selected tab item. |
New |
Gets a data item that corresponds to the currently selected tab item. |
Old |
Gets the index of the previously selected tab item. |
Old |
Gets a data item that corresponds to the previously selected tab item. |
#Remarks
The SelectionChanged event occurs after a tab item has been selected. The selected tab item is returned by the DXTabControl.SelectedItem property. The index of the previously selected item is returned by the event parameter’s TabControlSelectionChangedEventArgs.OldSelectedIndex property.
To prevent individual tab items from being selected, handle the DXTabControl.SelectionChanging event.
To learn more, see Navigating Between Tab Items.