XtraTabControl.SelectedPageChanging Event

Allows you to prevent a specific tab page from being activated.

Namespace: DevExpress.XtraTab

Assembly: DevExpress.XtraEditors.v21.2.dll


public event TabPageChangingEventHandler SelectedPageChanging

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.


The SelectedPageChanging event fires before a specific page is activated. If you set the Cancel parameter to true the page will not be activated.

See Also