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

            BindingContext = rpvm;

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

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