App.xaml.cs
MainPage = new NavigationPage(new Home());Home.xaml.cs
public Home()
{
Children.Insert(0,new CarPage1());
Children.Insert(1,new CarPage2());
Children.Insert(2,new CarPage3());
CurrentPage = Children[1];
}CarPage1.xaml.cs
protected override void OnAppearing()
{
base.OnAppearing();
DisplayAlert("Page1", null, "ok");
}CarPage2.xaml.cs
protected override void OnAppearing()
{
base.OnAppearing();
DisplayAlert("Page2", null, "ok");
}CarPage3.xaml.cs
protected override void OnAppearing()
{
base.OnAppearing();
DisplayAlert("Page3", null, "ok");
}运行UWP Page2警报显示。

单击“确定”,为什么显示Page1警报?

点击UWP左符号为什么没有Page1提示显示?

运行Xamarin.Android工作很好!!
发布于 2022-10-24 07:14:05
是的,就像你说的那样。
我已经创造了一个关于这个问题的新问题。您可以在这里跟踪它:https://github.com/xamarin/Xamarin.Forms/issues/15577。
感谢您对xamarin的支持和反馈。
祝您今天愉快。
https://stackoverflow.com/questions/74168131
复制相似问题