Skip to main content

XtraTabControl.SelectedPageChanging Event

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

Namespace: DevExpress.XtraTab

Assembly: DevExpress.XtraEditors.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Behavior")]
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.

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.

See Also