Reputation: 57
I am working on windows store app, where I am using ListView
control to add data dynamically. The items are added at the end of the list. The Scrollbar
appears when more data is added. I want to highlight last added item programatically with scroll bar at the bottom. I don't want to scroll the scroll bar manually to see last added item. How can I do this?
Thanks.
Upvotes: 1
Views: 6407
Reputation: 2093
Use this:
yourListView.ScrollIntoView(yourListView.Items[yourListView.Items.Count - 1]);
Upvotes: 0