Exemple #1
0
        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);
        }
Exemple #2
0
        public LessonsPage(LessonsPageViewModel lpvm)
        {
            InitializeComponent();

            BindingContext = lpvm;
        }