WPF Listbox display next element after SelectedItem
Posted
by
Daniil Harik
on Stack Overflow
See other posts from Stack Overflow
or by Daniil Harik
Published on 2009-05-12T09:21:30Z
Indexed on
2011/01/13
4:53 UTC
Read the original article
Hit count: 321
I have TextBox and ListBox with bunch of elements.
TextBox has KeyDown event handler, the idea behind this is to allow user to press up and down keys to scroll inside ListBox while focus is on TextBox.
When user presses "down key" several times, selected element becomes last visible element on screen. If user has reached bottom of visible list element on screen, I want him to see next element after selected element as well.
© Stack Overflow or respective owner