void collectionViewVertical_Scrolled(System.Object sender, Xamarin.Forms.ItemsViewScrolledEventArgs e) { var collect = sender as CollectionView; if (e.CenterItemIndex == 0) { Console.WriteLine("-------------ES UN GRUPO------------------" + e.CenterItemIndex); } }
void allTripsView_Scrolled(System.Object sender, Xamarin.Forms.ItemsViewScrolledEventArgs e) { //Console.WriteLine(e.VerticalOffset); //if (e.VerticalOffset > nameLay.Height) //{ // SetValue(NavigationPage.HasNavigationBarProperty, true); //} //else //{ // SetValue(NavigationPage.HasNavigationBarProperty, false); //} }
void timeListEnd_Scrolled(System.Object sender, Xamarin.Forms.ItemsViewScrolledEventArgs e) { try { var list = (CollectionView)sender; list.ScrollTo(timeSourceEnd[e.CenterItemIndex]); //Debug.WriteLine("CLASS ID: " + list.ClassId); var position = JsonConvert.DeserializeObject <DayRow>(list.ClassId); selectedSchedule[position.key][position.row][1].time = timeSourceEnd[e.CenterItemIndex].time; } catch { } }
void CollectionView_Scrolled(System.Object sender, Xamarin.Forms.ItemsViewScrolledEventArgs e) { var data = e.LastVisibleItemIndex; //if (data == fet[0]) //{ // //Debug.WriteLine("First Item has been hit!"); //} if (data == App.Locator.FeaturedProductPage.ProductList.edges.Count - 1) { App.Locator.FeaturedProductPage.ThresoldCommand.Execute(null); //Debug.WriteLine("Last Item has been hit!"); } }
async void CollectionView_Scrolled(System.Object sender, Xamarin.Forms.ItemsViewScrolledEventArgs e) { if (!_fabIsOutOfView && e.VerticalOffset > 0) { await fab.TranslateTo(0, 100, 250, Easing.CubicInOut).ConfigureAwait(false); _fabIsOutOfView = true; } else if (_fabIsOutOfView && e.VerticalOffset < 40) { await fab.TranslateTo(0, 0, 250, Easing.CubicInOut).ConfigureAwait(false); _fabIsOutOfView = false; } }
void CollectionView_Scrolled(object sender, Xamarin.Forms.ItemsViewScrolledEventArgs e) => appFrame.ShadowOpacity = e.VerticalOffset / 50 > 1 ? 1 : e.VerticalOffset / 50;