当使用Shell.Current.GoToAsync导航到单例页面时,如果未取消动画显示将有一定的概率提示Microsoft.UI.Xaml.Controls.Frame.NavigationFailed was unhandled错误。
所以为了避免此类问题发生将调用参数animate设置为false,即await Shell.Current.GoToAsync($"..", false)可以减少错误发生的机率,同时要加入try catch进行捕捉处理。
|
|
当使用Shell.Current.GoToAsync导航到单例页面时,如果未取消动画显示将有一定的概率提示Microsoft.UI.Xaml.Controls.Frame.NavigationFailed was unhandled错误。
所以为了避免此类问题发生将调用参数animate设置为false,即await Shell.Current.GoToAsync($"..", false)可以减少错误发生的机率,同时要加入try catch进行捕捉处理。
|
|