New to Telerik UI for WinUI? Download free 30-day trial

Programmatic Scrolling

RadListView expose an API that allows you to manually scroll in code.

The scrolling happens with the ScrollIndexIntoView, ScrollItemIntoView, ScrollToPosition methods of RadListView.

The ScrollItemIntoView method accepts an data item from the ItemsSource collection of the control and attempts to bring it into the view asynchronously.

Example 1: Using ScrollItemIntoView

object item = myItemsSource[30]; 
listView.ScrollItemIntoView(item); 
The ScrollToPosition method accepts a position (Point object) representing the offset to which the control should scroll.

Example 2: Using ScrollToPosition

this.listView.ScrollToPosition(new Point(0, 100)); 
The ScrollToPosition method accepts a position (Point object) representing the offset to which the control should scroll.

Example 3: Using ScrollIndexIntoView

this.listView.ScrollIndexIntoView(30); 
In this article
Not finding the help you need?