TabControlSelectionChangingEventArgs Class
Provides data for the DXTabControl.SelectionChanging event.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v24.1.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
Remarks
The DXTabControl.SelectionChanging event is raised before a tab item is selected, allowing you to cancel the action. The TabControlSelectionChangingEventArgs provides the System.ComponentModel.CancelEventArgs.Cancel property, which specifies whether to cancel selecting the tab item. To obtain the index of the item that is being selected, use the TabControlSelectionChangedEventArgs.NewSelectedIndex property. The index of the previously selected tab item is returned by the TabControlSelectionChangedEventArgs.OldSelectedIndex property.
After the tab item has been selected, the DXTabControl.SelectionChanged event is raised.