XtraTabControl.SelectedPageChanged Event
Fires after the selected tab page has been changed.
Namespace: DevExpress.XtraTab
Assembly: DevExpress.XtraEditors.v18.1.dll
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
The SelectedPageChanged event is raised when end-users select the tab pages via the keyboard or by clicking their headers using the mouse, or when changing the XtraTabControl.SelectedTabPage or XtraTabControl.SelectedTabPageIndex properties via code.
The event parameter’s TabPageChangedEventArgs.Page and TabPageChangedEventArgs.PrevPage properties allow the currently and previously selected tab pages to be identified, respectively.
If pages are switched using animation effects (see XtraTabControl.Transition), the XtraTabControl.SelectedPageChangeAnimationCompleted event fires when the animation completes.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the SelectedPageChanged event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.