Method OnNavigatedAwayAsync
OnNavigatedAwayAsync()
Called when the view model is navigated away from.
Declaration
Task OnNavigatedAwayAsync()
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This method cannot show dialogs or cancel/reroute the new navigation. It should only be used to clean up resources or unhook event handlers that were added in OnNavigatedToAsync(NavigationArgs). Calls are always paired with previous calls to OnNavigatedToAsync(NavigationArgs).