Skip to main content

NavigationFrame.Navigating Event

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

Namespace: DevExpress.Xpf.WindowsUI

Assembly: DevExpress.Xpf.Controls.v22.1.dll

NuGet Package: DevExpress.Wpf.Controls


public event NavigatingCancelEventHandler Navigating

Event Data

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


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