XtraTabControl.SelectedPageChanging Event
Allows you to prevent a specific tab page from being activated.
Namespace: DevExpress.XtraTab
Assembly: DevExpress.XtraEditors.v18.1.dll
Declaration
Event Data
The SelectedPageChanging event's data class is TabPageChangingEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Cancel | Gets or sets whether the event must be canceled. |
Page | Gets the tab page currently being processed. Inherited from TabPageChangedEventArgs. |
PrevPage | Gets the previously processed tab page. Inherited from TabPageChangedEventArgs. |
Remarks
The SelectedPageChanging event fires before a specific page is activated. If you set the Cancel parameter to true the page will not be activated.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SelectedPageChanging 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.