Exemplo n.º 1
0
        public ReviewPage(ReviewPageViewModel rpvm)
        {
            InitializeComponent();

            BindingContext = rpvm;

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

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