示例#1
0
                protected override async void OnAppearing()
                {
                    base.OnAppearing();
                    await Task.Delay(500);

                    var contentPage = new ContentPage();

                    contentPage.Appearing += (_, __) =>
                    {
                        var navPage = new NavigationPage(new ContentPage()
                        {
                            Title = "Details"
                        });
                        Detail = navPage;
                        Flyout = new ContentPage()
                        {
                            Title = "Flyout"
                        };

                        Application.Current.MainPage = Issue2338TestHelper.CreateSuccessPage(nameof(Issue2338_MasterDetailsPage_NavigationPage));

                        navPage.PushAsync(new ContentPage()
                        {
                            Title = "Details 2"
                        });
                    };

#pragma warning disable 4014
                    Detail.Navigation.PushAsync(contentPage);
#pragma warning restore 4014
                }
示例#2
0
                protected override void OnAppearing()
                {
                    base.OnAppearing();
                    _tabbedPage.Children.Add(new ContentPage());

                    Application.Current.MainPage = Issue2338TestHelper.CreateSuccessPage(nameof(Issue2338_TabbedPage));
                    _tabbedPage.Children.Add(new ContentPage());
                }
示例#3
0
                private void DetailAppearing(object sender, EventArgs e)
                {
                    Detail = new ContentPage()
                    {
                        Title = "Details"
                    };
                    Flyout = new ContentPage()
                    {
                        Title = "Flyout"
                    };

                    Application.Current.MainPage = Issue2338TestHelper.CreateSuccessPage(nameof(Issue2338_MasterDetailsPage_ContentPage));
                }
示例#4
0
 public InternalPage(int permutations)
 {
     _permutations = permutations;
     if (permutations > 5)
     {
         Device.BeginInvokeOnMainThread(() =>
         {
             Application.Current.MainPage = Issue2338TestHelper.CreateSuccessPage(nameof(Issue2338_Ctor_MultipleChanges));
         });
     }
     else
     {
         Device.BeginInvokeOnMainThread(() =>
         {
             Application.Current.MainPage =
                 new NavigationPage(new InternalPage(permutations + 1)
             {
                 Title = "Title 1"
             });
         });
     }
 }
示例#5
0
 public InternalTabbedPage(NavigationPage navigationPage)
 {
     _navigationPage = navigationPage;
     Children.Add(Issue2338TestHelper.CreateSuccessPage(nameof(Issue2338_SwapMainPageDuringAppearing)));
 }
示例#6
0
 public InternalPage()
 {
     Application.Current.MainPage = Issue2338TestHelper.CreateSuccessPage(nameof(Issue2338_Ctor));
 }