Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

NavigationFrame.SelectedPageChanging Event

Fires when the NavigationFrame is about to change its currently selected page and allows you to cancel this upcoming modification.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Layout")]
public event SelectedPageChangingEventHandler SelectedPageChanging

#Event Data

The SelectedPageChanging event's data class is DevExpress.XtraBars.Navigation.SelectedPageChangingEventArgs.

#Remarks

Handle the SelectedPageChanging event and set the Cancel property to true to restrict the frame navigation to the specific NavigationPage. If not canceled, the NavigationFrame.SelectedPageChanged event occurs.

The current selection in the frame page is stored in the NavigationFrame.SelectedPage property.

See Also