示例#1
0
        public HiraganaExamPage()
        {
            InitializeComponent();
            MockDataStore DataStore = DependencyService.Get <MockDataStore>() ?? new MockDataStore();
            var           item      = DataStore.GetHiraganaCourseAsync("Hiragana_Exam_1").Result;

            viewModel      = new HiraganaExamViewModel(item);
            viewModel.Page = this;
            BindingContext = viewModel;
        }
示例#2
0
        public HiraganaExamPage(HiraganaExamViewModel viewModel)
        {
            InitializeComponent();
            viewModel.Page = this;
            BindingContext = this.viewModel = viewModel;

            /*JapaneseCharacter.GestureRecognizers.Add(new TapGestureRecognizer()
             * {
             *  Command = new Command(() => viewModel.PlaySound())
             * });*/
        }