protected override void OnAppearing() { base.OnAppearing(); _tabbedPage.Children.Add(new ContentPage()); Application.Current.MainPage = Issue2338TestHelper.CreateSuccessPage(nameof(Issue2338_TabbedPage)); _tabbedPage.Children.Add(new ContentPage()); }
private void DetailAppearing(object sender, EventArgs e) { Detail = new ContentPage() { Title = "Details" }; Master = new ContentPage() { Title = "Master" }; Application.Current.MainPage = Issue2338TestHelper.CreateSuccessPage(nameof(Issue2338_MasterDetailsPage_ContentPage)); }
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" }); }); } }
protected override async void OnAppearing() { base.OnAppearing(); await Task.Delay(500); Detail.Navigation.PushAsync(new ContentPage()); Detail.Navigation.PushModalAsync(new NavigationPage(new ContentPage() { Title = "Details 2" })); var navPage = new NavigationPage(new ContentPage() { Title = "Details" }); Detail = navPage; Application.Current.MainPage = Issue2338TestHelper.CreateSuccessPage(nameof(Issue2338_MasterDetailsPage)); navPage.PushAsync(new ContentPage() { Title = "Details 2" }); }
public InternalTabbedPage(NavigationPage navigationPage) { _navigationPage = navigationPage; Children.Add(Issue2338TestHelper.CreateSuccessPage(nameof(Issue2338_SwapMainPageDuringAppearing))); }
public InternalPage() { Application.Current.MainPage = Issue2338TestHelper.CreateSuccessPage(nameof(Issue2338_Ctor)); }