private async void Button_Clicked_Continue(object sender, EventArgs e) { if (Model == null) { return; } Pushing = true; OnBackButtonPressed(); var page = new QuizWordChoicePage(Model.QuizWordChoice, true); NavigationPage.SetHasNavigationBar(page, false); await Navigation.PushAsync(page); Pushing = false; }
private async void Button_Clicked_Retry(object sender, EventArgs e) { //https://stackoverflow.com/questions/36892044/clear-xamarin-forms-modal-stack/36893908 if (Model == null) { return; } Pushing = true; //workaround. OnBackButtonPressed(); var page = new QuizWordChoicePage(new QuizWordChoiceViewModel(Model.Wordbook, Model.Seed, Model.ChoiceKind) { RetryStatus = QuizWordChoiceViewModel.RetryStatusEnum.Retry }); NavigationPage.SetHasNavigationBar(page, false); await Navigation.PushAsync(page); Pushing = false; }
private async void Button_Clicked(object sender, EventArgs e) { if (Pushing) { return; } if (IsBusy) { return; } if (Model.Words == null || Model.Words.Count == 0) { return; } Pushing = true; var page = new QuizWordChoicePage(new QuizWordChoiceViewModel(Model, QuizWordChoiceViewModel.ChoiceKind.Title)); NavigationPage.SetHasNavigationBar(page, false); await Navigation.PushAsync(page); Pushing = false; }