public void BackClicked(object sender, EventArgs e)
        {
            var slide = ((sender as View).BindingContext as OnBoardingSlide);
            var index = VM.Slides.IndexOf(slide);

            if (index > 0)
            {
                TheCarousel.ScrollTo(index - 1);
            }
        }
示例#2
0
        public void NextClicked(object sender, EventArgs e)
        {
            var slide = ((sender as View).BindingContext as Slide);
            var index = viewModel.Slides.IndexOf(slide);

            if (index < viewModel.Slides.Count - 1)
            {
                TheCarousel.ScrollTo(index + 1);
            }
            else
            {
                viewModel.OnboardingVisible = false;
            }
        }
        public void NextClicked(object sender, EventArgs e)
        {
            var slide = ((sender as View).BindingContext as OnBoardingSlide);
            var index = VM.Slides.IndexOf(slide);

            if (index < VM.Slides.Count() - 1)
            {
                TheCarousel.ScrollTo(index + 1);
            }
            else
            {
                OnDisappearing?.Invoke(this, e);
            }
        }
示例#4
0
 public void HelpClicked(object sender, EventArgs e)
 {
     TheCarousel.ScrollTo(0, animate: false);
     viewModel.OnboardingVisible = true;
 }