XtraTabControl.SelectedPageChanged Event
Fires after a new XtraTabControl page has been selected.
Namespace: DevExpress.XtraTab
Assembly: DevExpress.XtraEditors.v26.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
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.