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.v21.2.dll
NuGet Package: DevExpress.Uwp.Controls
Declaration
Parameters
Name | Type | Description |
---|---|---|
e | DevExpress.Core.DXNavigatingCancelEventArgs | A DXNavigatingCancelEventArgs object that contains event data. |
Remarks
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