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

TabControlSelectionChangingEventArgs Class

Provides data for the DXTabControl.SelectionChanging event.

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public class TabControlSelectionChangingEventArgs :
    CancelEventArgs

#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.

#Inheritance

Object
EventArgs
CancelEventArgs
TabControlSelectionChangingEventArgs
See Also