private void carousel_Scrolled(object sender, CarouselView.FormsPlugin.Abstractions.ScrolledEventArgs e)
        {
            //NavigateMarker((int)e.NewValue);
            // e.newvalue for scroll is not showing accurate
            //if (isFired)
            //{
            //    isFired = false;
            //    int value = -1;

            //    //CarrouselView Plugin in start and at end position the scroll direction is showing reverse : left scroll in ScrolledEventArgs shoing as right
            //    //For that reason both the cases are handled.
            //    if (carousel.Position == ((ObservableCollection<View>)carousel.ItemsSource).Count - 1 || carousel.Position == 0)
            //    {
            //        isFired = false;
            //        isClicked = true;
            //    }
            //    else
            //    {

            //        if (e.Direction == CarouselView.FormsPlugin.Abstractions.ScrollDirection.Right)
            //        {
            //            value = carousel.Position + 1;
            //        }
            //        else if (e.Direction == CarouselView.FormsPlugin.Abstractions.ScrollDirection.Left)
            //        {
            //            value = carousel.Position - 1;
            //        }
            //        if (value >= 0 && value <8)
            //        {
            //            NavigateMarker(value);
            //        }
            //    }
            //}
        }
Beispiel #2
0
        private void CarouselViewControl_Scrolled(object sender, CarouselView.FormsPlugin.Abstractions.ScrolledEventArgs e)
        {
            var carouselView = sender as CarouselView.FormsPlugin.Abstractions.CarouselViewControl;

            var count = (carouselView.ItemsSource as ObservableCollection <LianJiaStartModel>).Count;


            if (carouselView.Position == count - 1 && e.Direction == CarouselView.FormsPlugin.Abstractions.ScrollDirection.Right)
            {
                Application.Current.MainPage = new NavigationPage(new LianJiaIndexSamples());
            }
        }
Beispiel #3
0
 void Handle_Scrolled(object sender, CarouselView.FormsPlugin.Abstractions.ScrolledEventArgs e)
 {
     Debug.WriteLine("Scrolled to " + e.NewValue + " percent.");
     Debug.WriteLine("Direction = " + e.Direction);
 }
Beispiel #4
0
 private void Carousel_Scrolled(object sender, CarouselView.FormsPlugin.Abstractions.ScrolledEventArgs e)
 {
 }
 /// <summary>
 /// control the carocel page scrolling
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void Handle_Scrolled(object sender, CarouselView.FormsPlugin.Abstractions.ScrolledEventArgs e)
 {
     //todo
 }
Beispiel #6
0
 private void CvwUitleg_Scrolled(object sender, CarouselView.FormsPlugin.Abstractions.ScrolledEventArgs e)
 {
     Debug.WriteLine(e.Direction);
 }