Scrolls the list to bring the specified data item into view.
public void ScrollIntoView(
object item
)
Parameters
itemType: 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]);
沒有留言:
張貼留言