Method OnNavigatingFromAsync
OnNavigatingFromAsync(INavigator, NavigatingArgs)
Invoked when the view model is being navigated away from and allows the navigation to be cancelled.
Declaration
ValueTask OnNavigatingFromAsync(INavigator navigator, NavigatingArgs args)
Parameters
Type | Name | Description |
---|---|---|
INavigator | navigator | |
NavigatingArgs | args |
Returns
Type | Description |
---|---|
ValueTask |
Remarks
This method can show dialogs as long as they are closed before the task completes. The Cancel property is checked on
args
after the task returned by this method completes. This method cannot reroute to another destination.