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

Syntax

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

Parameters

item
The item from your ListView.ItemsSource to scroll to.
group
The group 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.
InvalidOperationExceptionListView.IsGroupingEnabled is false.

Remarks

A linear search is done for the item, so if the same reference appears multiple times in the group, the first item will be scrolled to. The same item in a different group will be ignored.

Requirements

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