public HiraganaCoursePage(HiraganaCourseViewModel viewModel) { InitializeComponent(); viewModel.Page = this; BindingContext = this.viewModel = viewModel; JapaneseCharacter.GestureRecognizers.Add(new TapGestureRecognizer() { Command = new Command(() => viewModel.PlaySound()) }); }
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; }