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); } }
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); } }
public void HelpClicked(object sender, EventArgs e) { TheCarousel.ScrollTo(0, animate: false); viewModel.OnboardingVisible = true; }