Exemple #1
0
        public DoQuizPage()
        {
            InitializeComponent();

            var category = new Category
            {
                Name      = "Category 1",
                Questions = null
            };

            viewModel      = new DoQuizViewModel(category);
            BindingContext = viewModel;
        }
Exemple #2
0
        public DoQuizPage(DoQuizViewModel doQuizViewModel)
        {
            InitializeComponent();

            BindingContext = viewModel = doQuizViewModel;
        }