Method OnNavigatingFromAsync
OnNavigatingFromAsync(INavigator, NavigatingArgs)
Invoked when the view model is being navigated away from and allows the navigation to be cancelled.
Declaration
public virtual ValueTask OnNavigatingFromAsync(INavigator navigator, NavigatingArgs args)
Parameters
Type | Name | Description |
---|---|---|
INavigator | navigator | |
NavigatingArgs | args |
Returns
Type | Description |
---|---|
ValueTask |
Implements
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.