private async void GoClicked() { var validator = new QuizesPageValidator(); var result = validator.Validate(this); if (result.IsValid) { var quiz = _generator.CreateQuiz(QuestionNumber, SelectedDifficulty.QuizDifficulty, 2); // await Navigation.PushAsync(_container.Resolve<QuizPage>(new DependencyOverride(typeof(Quiz), quiz))); await _navigationService.NavigateAsync("QuizPage", new NavigationParameters() { { "Quiz", quiz } }); } else { //await _dialog.DisplayAlertAsync("Error", result, "Ok"); await Ext.DisplayError(result, _dialog); } }