Back to Devexpress

TabControlSelectionChangingEventArgs Class

wpf-devexpress-dot-xpf-dot-core-6fbd06f1.md

latest2.3 KB
Original Source

TabControlSelectionChangingEventArgs Class

Provides data for the DXTabControl.SelectionChanging event.

Namespace : DevExpress.Xpf.Core

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public class TabControlSelectionChangingEventArgs :
    CancelEventArgs
vb
Public Class TabControlSelectionChangingEventArgs
    Inherits CancelEventArgs

TabControlSelectionChangingEventArgs is the data class for the following events:

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

TabControlSelectionChangingEventArgs Members

DevExpress.Xpf.Core Namespace