XtraTabControl.SelectedPageChanged Event

Fires after a new XtraTabControl page has been selected.

Namespace: DevExpress.XtraTab

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DXCategory("Behavior")]
public event TabPageChangedEventHandler SelectedPageChanged
<DXCategory("Behavior")>
Public Event SelectedPageChanged As TabPageChangedEventHandler

Event Data

The SelectedPageChanged event's data class is TabPageChangedEventArgs. The following properties provide information specific to this event:

Property Description
Page Gets the tab page currently being processed.
PrevPage Gets the previously processed tab page.

Remarks

An XtraTabControl selects a page when a user clicks this page header or uses keyboard navigation, or when the code-behind modifies the XtraTabControl.SelectedTabPage or XtraTabControl.SelectedTabPageIndex properties.

The event parameter's TabPageChangedEventArgs.Page and TabPageChangedEventArgs.PrevPage properties allow you to identify the currently selected page, and a page that was selected before.

If you enable animation effects that follow page transitions (see XtraTabControl.Transition), the XtraTabControl.SelectedPageChangeAnimationCompleted event fires when the animation completes.

See Also