Xamarin.Forms.ListView.ScrollTo Method
Scrolls the ListView to the item.

Syntax

public void ScrollTo (object item, ScrollToPosition position, bool animated)

Parameters

item
The item from your ListView.ItemsSource to scroll to.
position
How the item should be positioned on screen.
animated
Whether or not the scroll should be animated.

Exceptions

TypeReason
ArgumentExceptionposition contains an invalid value for Xamarin.Forms.ScrollToPosition.

Remarks

A linear search is done for the item, so if the same reference appears multiple times in the list, the first item will be scrolled to. This includes if grouping is enabled.

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.3.0.0