Example #1
0
        public ReviewPage(ReviewPageViewModel rpvm)
        {
            InitializeComponent();

            BindingContext = rpvm;

            listQuestions.ItemTapped += OnListItemTapped;
        }
Example #2
0
 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");
         }
     };
 }
Example #3
0
        public ReviewPage(ReviewPageViewModel rpvm)
        {
            InitializeComponent();

            BindingContext = rpvm;
        }
Example #4
0
 public ReviewPage(ReviewPageViewModel viewModel)
 {
     InitializeComponent();
     this.BindingContext = viewModel;
 }
Example #5
0
 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;
 }