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]);
創作者介紹
創作者 Conan 0101 的部落格 的頭像
Conan

Conan 0101 的部落格

Conan 發表在 痞客邦 留言(0) 人氣( 3 )