Method OnRouteNavigatingAsync
OnRouteNavigatingAsync(NavigatingArgs)
Called whenever the view model is active in the current route and a new route is being navigated to, even if the view model will remain active in the new route. If the view model will not remain active in the new route then it will be called after OnNavigatingAwayAsync(NavigatingArgs).
Declaration
Task OnRouteNavigatingAsync(NavigatingArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| NavigatingArgs | args |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This method can show dialogs as long as they are closed before the returned task completes. The Cancel property on
args is checked after the task returned by this method completes to determine whether the new navigation should be cancelled.