59 references to ScrollToPosition
Microsoft.Maui.Controls (59)
Compatibility\Handlers\ListView\iOS\ListViewRenderer.cs (5)
334 UITableViewScrollPosition GetScrollPosition(ScrollToPosition position) 338 case ScrollToPosition.Center: 340 case ScrollToPosition.End: 342 case ScrollToPosition.Start: 344 case ScrollToPosition.MakeVisible:
Handlers\Items\GroupableItemsViewHandler.iOS.cs (2)
43 && (args.ScrollToPosition == ScrollToPosition.End || args.ScrollToPosition == ScrollToPosition.MakeVisible);
Handlers\Items\iOS\CarouselViewController.cs (3)
137 carousel.ScrollTo(carousel.Position, position: Microsoft.Maui.Controls.ScrollToPosition.Center, animate: false); 446 carousel.ScrollTo(goToPosition, position: Microsoft.Maui.Controls.ScrollToPosition.Center, animate: animate); 579 carousel.ScrollTo(position, -1, Microsoft.Maui.Controls.ScrollToPosition.Center, false);
Handlers\Items\iOS\ScrollToPositionExtensions.cs (11)
9 public static UICollectionViewScrollPosition ToCollectionViewScrollPosition(this ScrollToPosition scrollToPosition, 20 public static UICollectionViewScrollPosition ToHorizontalCollectionViewScrollPosition(this ScrollToPosition scrollToPosition, bool isLtr) 24 case ScrollToPosition.MakeVisible: 26 case ScrollToPosition.Start: 28 case ScrollToPosition.End: 30 case ScrollToPosition.Center: 36 public static UICollectionViewScrollPosition ToVerticalCollectionViewScrollPosition(this ScrollToPosition scrollToPosition) 40 case ScrollToPosition.MakeVisible: 42 case ScrollToPosition.Start: 44 case ScrollToPosition.End: 46 case ScrollToPosition.Center:
Handlers\Items2\CollectionViewHandler2.iOS.cs (2)
100 && (args.ScrollToPosition == ScrollToPosition.End || args.ScrollToPosition == ScrollToPosition.MakeVisible);
IScrollViewController.cs (1)
9 Point GetScrollPositionForElement(VisualElement item, ScrollToPosition position);
Items\ItemsView.cs (4)
155 ScrollToPosition position = ScrollToPosition.MakeVisible, bool animate = true) 162 ScrollToPosition position = ScrollToPosition.MakeVisible, bool animate = true)
Items\ScrollToRequestEventArgs.cs (3)
13 public ScrollToPosition ScrollToPosition { get; } 29 ScrollToPosition scrollToPosition, bool isAnimated) 41 ScrollToPosition scrollToPosition, bool isAnimated)
ListView\ListView.cs (4)
387 public void ScrollTo(object item, ScrollToPosition position, bool animated) 389 if (!Enum.IsDefined(typeof(ScrollToPosition), position)) 400 public void ScrollTo(object item, object group, ScrollToPosition position, bool animated) 404 if (!Enum.IsDefined(typeof(ScrollToPosition), position))
PlatformConfiguration\TizenSpecific\ItemsView.cs (7)
9 public static readonly BindableProperty FocusedItemScrollPositionProperty = BindableProperty.Create("FocusedItemScrollPosition", typeof(ScrollToPosition), typeof(FormsElement), ScrollToPosition.MakeVisible); 12 public static ScrollToPosition GetFocusedItemScrollPosition(BindableObject element) 14 return (ScrollToPosition)element.GetValue(FocusedItemScrollPositionProperty); 17 public static void SetFocusedItemScrollPosition(BindableObject element, ScrollToPosition position) 22 public static ScrollToPosition GetFocusedItemScrollPosition(this IPlatformElementConfiguration<Tizen, FormsElement> config) 27 public static IPlatformElementConfiguration<Tizen, FormsElement> SetFocusedItemScrollPosition(this IPlatformElementConfiguration<Tizen, FormsElement> config, ScrollToPosition position)
ScrollToRequestedEventArgs.cs (4)
17 internal ScrollToRequestedEventArgs(Element element, ScrollToPosition position, bool shouldAnimate) 25 internal ScrollToRequestedEventArgs(object item, ScrollToPosition position, bool shouldAnimate) 33 internal ScrollToRequestedEventArgs(object item, object group, ScrollToPosition position, bool shouldAnimate) 49 public ScrollToPosition Position { get; private set; }
ScrollView\ScrollView.cs (13)
53 public Point GetScrollPositionForElement(VisualElement item, ScrollToPosition pos) 55 ScrollToPosition position = pos; 59 if (position == ScrollToPosition.MakeVisible) 68 position = y > ScrollY ? ScrollToPosition.End : ScrollToPosition.Start; 71 position = x > ScrollX ? ScrollToPosition.End : ScrollToPosition.Start; 74 position = x > ScrollX || y > ScrollY ? ScrollToPosition.End : ScrollToPosition.Start; 80 case ScrollToPosition.Center: 84 case ScrollToPosition.End: 256 public Task ScrollToAsync(Element element, ScrollToPosition position, bool animated) 261 if (!Enum.IsDefined(typeof(ScrollToPosition), position))