Occurs after a tab item has been selected.
public event TabControlSelectionChangedEventHandler SelectionChanged
Public Event SelectionChanged As TabControlSelectionChangedEventHandler
The SelectionChanged event's data class is TabControlSelectionChangedEventArgs. The following properties provide information specific to this event:
|NewSelectedIndex||Gets the index of the currently selected tab item.|
|NewSelectedItem||Gets a data item that corresponds to the currently selected tab item.|
|OldSelectedIndex||Gets the index of the previously selected tab item.|
|OldSelectedItem||Gets a data item that corresponds to the previously selected tab item.|
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 Header Menu.