You are viewing help content for pre-release software. This document and the features it describes are subject to change. Switch to the current version.

TabControlSelectionChangingEventArgs Class

Provides data for the DXTabControl.SelectionChanging event.

Namespace: DevExpress.Xpf.Core

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

Declaration

public class TabControlSelectionChangingEventArgs :
    CancelEventArgs
Public Class TabControlSelectionChangingEventArgs
    Inherits 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