NavigationFrame.Navigating Event

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

Namespace: DevExpress.Xpf.WindowsUI

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

Declaration

public event NavigatingCancelEventHandler Navigating
Public Event Navigating As NavigatingCancelEventHandler

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