//Xamarin.Forms.ListViewDataSource public override void Scrolled(UIScrollView scrollView) { //System.Diagnostics.Debug.WriteLine("ScrollDelegate Scrolled"); if (_scrolling && Element?.ItemsSource != null) { Element?.OnScrolling(this, EventArgs.Empty); } Source.Scrolled(scrollView); }
/// <summary> /// Handle the scroll behavior. /// </summary> /// <param name="scrollView">The scroll view.</param> public override void Scrolled(UIScrollView scrollView) { _source.Scrolled(scrollView); bool isBouncingTop = scrollView.ContentOffset.Y < 0; bool isBouncingBottom = scrollView.ContentOffset.Y > (scrollView.ContentSize.Height - scrollView.Frame.Size.Height); if (!isBouncingTop && !isBouncingBottom) { SendScrollEvent(scrollView.ContentOffset.Y); } }
public override void Scrolled(UIScrollView scrollView) { _source.Scrolled(scrollView); SendScrollEvent(scrollView.ContentOffset.Y); }