Reputation: 454
I want to manage the listview while the text field is in focus. I mean the following case: I'm writing some text into the text box, but I am able to manage the list view selection in the same time by some keys(Up, Down).
I tried to change the SelectedIndex property, but I lose the automatic scrolling of the list view in this case.
I think it could be solved by raising key down event with a special key (Up, Down) for the listview - is there any way to do it?
Upvotes: 0
Views: 77
Reputation: 4465
you just need to use ScrollIntoView() method of ListView whenever you set the SelectedIndex of your ListView just follow it up with ScrollIntoView. you do it in 2 ways.
Upvotes: 2