コード例 #1
0
 //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);
 }
コード例 #2
0
            /// <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);
                }
            }
コード例 #3
0
 public override void Scrolled(UIScrollView scrollView)
 {
     _source.Scrolled(scrollView);
     SendScrollEvent(scrollView.ContentOffset.Y);
 }