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.Navigating Event

Occurs whenever the NavigationFrame attempts to navigate to a view (screen).

Namespace: DevExpress.Xpf.WindowsUI

Assembly: DevExpress.Xpf.Controls.v24.2.dll

NuGet Package: DevExpress.Wpf.Controls

#Declaration

public event NavigatingCancelEventHandler Navigating

#Event Data

The Navigating event's data class is DevExpress.Xpf.WindowsUI.Navigation.NavigatingEventArgs.

#Remarks

You can handle the Navigating event to perform a required check, and if necessary, cancel navigation by setting the Cancel property to true. In this scenario, the NavigationFrame.NavigationCanceled event occurs. If not canceled, the Navigating event is followed by the NavigationFrame.Navigated event.

If navigation fails, the NavigationFrame.NavigationFailed event occurs.

See Also