private void TvDelegate_OnScrolled(object sender, EventArgs e)
 {
     if (Control.ContentOffset.Y < 0)
     {
         CustomListview.OverScrollUpdate(Source, (float)(-Control.ContentOffset.Y / Xamarin.Essentials.DeviceDisplay.MainDisplayInfo.Density));
     }
     else
     {
         CustomListview.OnScrollChanged(Source, new CustomForms.ScrollChangedEventArgs(0, 0, 0, (int)(-Control.ContentOffset.Y * Xamarin.Essentials.DeviceDisplay.MainDisplayInfo.Density)));
     }
 }
Пример #2
0
 public void OnOverScrollUpdate(IOverScrollDecor decor, int state, float offset)
 {
     CustomListview.OverScrollUpdate(Source, offset / Context.Resources.DisplayMetrics.Density);
 }