private async void OnLessonTapped(object sender, ItemTappedEventArgs e) { LessonsPageViewModel lpvm = BindingContext as LessonsPageViewModel; var index = lpvm.Lessons.IndexOf((Lesson)e.Item); await DependencyService.Get <NavigationService>().GotoPageAsync(AppPage.QuestionPage, index); }
public LessonsPage(LessonsPageViewModel lpvm) { InitializeComponent(); BindingContext = lpvm; }