async void PushFlyoutPageClicked(object sender, EventArgs e) { var modalPage = new ModalPage(); Page newMainPage = new NavigationPage(modalPage) { BackgroundColor = (BackgroundColor == Colors.Purple) ? Colors.Pink : Colors.Purple, Title = $"Navigation Root: {modalPage.Title}" }; var flyoutPage = new FlyoutPage() { Detail = newMainPage, Flyout = new ContentPage() { Content = new Label() { Text = "Flyout Text" }, Title = "Flyout Title" } }; await Navigation.PushModalAsync(flyoutPage); }
async void PushModalClicked(object sender, EventArgs e) { Page pushMe = new ModalPage() { BackgroundColor = (BackgroundColor == Colors.Purple) ? Colors.Pink : Colors.Purple }; await Navigation.PushModalAsync(pushMe); }
async void PushNavigationModalClicked(object sender, EventArgs e) { var modalPage = new ModalPage(); Page pushMe = new NavigationPage(modalPage) { BackgroundColor = (BackgroundColor == Colors.Purple) ? Colors.Pink : Colors.Purple, Title = $"Navigation Root: {modalPage.Title}" }; await Navigation.PushModalAsync(pushMe); }