XtraTabControl.SelectedPageChanging Event

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

Namespace: DevExpress.XtraTab

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DXCategory("Behavior")]
public event TabPageChangingEventHandler SelectedPageChanging
<DXCategory("Behavior")>
Public Event SelectedPageChanging As TabPageChangingEventHandler

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