The requested page is not available for the requested platform. You are viewing the content for Default platform.

ISupportNavigationEvents.OnNavigating(DXNavigatingCancelEventArgs) Method

Called automatically before a page with a ViewModel implementing the ISupportNavigationEvents interface is unloaded from the parent frame.

Namespace: DevExpress.Core

Assembly: DevExpress.Core.v19.1.dll


void OnNavigating(
    DXNavigatingCancelEventArgs e
Sub OnNavigating(
    e As DXNavigatingCancelEventArgs


Name Type Description
e DevExpress.Core.DXNavigatingCancelEventArgs

A DXNavigatingCancelEventArgs object that contains event data.


To prevent the page from being unloaded, set the e.Cancel property to true.

If the OnNavigating method's e.Cancel parameter does not equal true, the current page is unloaded and then the ISupportNavigationEvents.OnNavigated method belonging to a ViewModel of the newly loaded page is called.

See Also