I want to show the selected item in a list view automatically(it isn't possible to show all items without scrolling).
this.listView.SelectedIndex = 999;
selects of course an item, but it doesn't show it.
what can I use to show it automatically ?
kind regards, jeff
You can do this:-
listview.ScrollIntoView(listview.SelectedItem);
Scroll WPF ListBox to the SelectedItem set in code in a view model