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(Int32, Int32, Object, Object) Constructor

Initializes a new instance of the TabControlSelectionChangingEventArgs class.

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public TabControlSelectionChangingEventArgs(
    int oldSelectedIndex,
    int newSelectedIndex,
    object oldSelectedItem,
    object newSelectedItem
)

#Parameters

Name Type Description
oldSelectedIndex Int32

A zero-based integer value that specifies the index of the previously selected tab item. This value is assigned to the TabControlSelectionChangedEventArgs.OldSelectedIndex property.

newSelectedIndex Int32

A zero-based integer value that specifies the index of the currently selected tab item. This value is assigned to the TabControlSelectionChangedEventArgs.NewSelectedIndex property.

oldSelectedItem Object

A data item that corresponds to the previously selected tab item. This value is assigned to the TabControlSelectionChangedEventArgs.OldSelectedItem property.

newSelectedItem Object

A data item that corresponds to the currently selected tab item. This value is assigned to the TabControlSelectionChangedEventArgs.NewSelectedItem property.

#Remarks

Instances of the TabControlSelectionChangingEventArgs class are automatically created, initialized and passed to the DXTabControl.SelectionChanging event handlers. Typically, there is no need to call this constructor directly from your code.

See Also