Skip to main content
A newer version of this page is available. .

TabControlSelectionChangingEventArgs Class

Provides data for the DXTabControl.SelectionChanging event.

Namespace: DevExpress.Xpf.Core

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

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TabControlSelectionChangingEventArgs class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

Object
EventArgs
CancelEventArgs
TabControlSelectionChangingEventArgs
See Also