When using Shell.Current.GoToAsync
to navigate to a singleton page, if animations are not disabled, there is a certain probability of encountering a Microsoft.UI.Xaml.Controls.Frame.NavigationFailed was unhandled
error.
To avoid this issue, set the animate
parameter to false
, i.e., await Shell.Current.GoToAsync($"..", false)
, to reduce the likelihood of errors, and include try-catch handling.
|
|