Reputation: 25
My collection:
private ObservableCollection<Data> listData;
ListBox source:
ListBoxData.ItemsSource = listData;
Later i add elements 20 times at start of collection: ListBoxData.Insert(0, new Data());
After adding ListBox scrolls to first element of collection. How to disable scrolling after adding?
Upvotes: 1
Views: 180