Example #1
0
 public HiraganaCoursePage(HiraganaCourseViewModel viewModel)
 {
     InitializeComponent();
     viewModel.Page = this;
     BindingContext = this.viewModel = viewModel;
     JapaneseCharacter.GestureRecognizers.Add(new TapGestureRecognizer()
     {
         Command = new Command(() => viewModel.PlaySound())
     });
 }
Example #2
0
        public HiraganaCoursePage()
        {
            InitializeComponent();
            MockDataStore DataStore = DependencyService.Get <MockDataStore>() ?? new MockDataStore();
            var           item      = DataStore.GetHiraganaCourseAsync("Hiragana_Course_1").Result;

            viewModel      = new HiraganaCourseViewModel(item);
            viewModel.Page = this;
            BindingContext = viewModel;
        }