public ReviewPage(ReviewPageViewModel rpvm) { InitializeComponent(); BindingContext = rpvm; listQuestions.ItemTapped += OnListItemTapped; }
public ReviewPage(ReviewPageViewModel viewModel) { InitializeComponent(); this.BindingContext = viewModel; listQuestions.ItemTapped += async(sender, args) => { QuizQuestionViewModel qqvm = args.Item as QuizQuestionViewModel; if (qqvm != null) { await this.DisplayAlert("Explanation", qqvm.Explanation, "Ok"); } }; }
public ReviewPage(ReviewPageViewModel rpvm) { InitializeComponent(); BindingContext = rpvm; }
public ReviewPage(ReviewPageViewModel viewModel) { InitializeComponent(); this.BindingContext = viewModel; }
public ReviewPage(ReviewPageViewModel rpvm) : this() { BindingContext = rpvm; this.Title = rpvm.QuestionViewModels.Count(x => x.IsCorrect) + " correct out of " + rpvm.QuestionViewModels.Count + " questions"; listQuestions.ItemTapped += OnListItemTapped; }