You can use the following function:
Scrolls the list to bring the specified data item into view.
>public void ScrollIntoView(
object item
)
Parameters
item
Type: System.Object [.NET] | Platform::Object [C++]
The data item to bring into view.
Sample
int nPos = 5;
listView.ItemsSource = list;
listView.UpdateLayout();
listView.ScrollIntoView(list[nPos]);
請先 登入 以發表留言。