XtraTabControl.SelectedPageChanged Event
Fires after a new XtraTabControl page has been selected.
Namespace: DevExpress.XtraTab
Assembly: DevExpress.XtraEditors.v24.2.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
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.
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.