Xamarin.UWP旋转木马页面出现()错误

nbnkbykc  于 2022-12-07  发布在  其他
关注(0)|答案(1)|浏览(118)

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第2页警报显示。x1c 0d1x
单击“确定”为什么第1页警报显示?

单击UWP左侧符号为什么没有显示Page 1警报?

运行Xamarin。Android工作正常!!

6vl6ewon

6vl6ewon1#

是的,正如你所说的那样。
我已经创建了一个关于这个问题的新问题。你可以在这里跟踪它:https://github.com/xamarin/Xamarin.Forms/issues/15577
感谢您对xamarin的支持和反馈。
祝你愉快

相关问题