Scrolling a listbox with page up/down
Posted
by orca
on Stack Overflow
See other posts from Stack Overflow
or by orca
Published on 2009-04-10T12:00:56Z
Indexed on
2010/03/12
15:17 UTC
Read the original article
Hit count: 396
I had an ItemsControl, which you could use page up/down buttons to scroll expectedly. I switched it with a ListBox, to apply (thru triggers) a new DataTemplate when an item is selected.
Everything works fine, until using pageup or pagedown buttons. Instead of scrolling one page, it scrolls till the end or the beginning.
My previous attemps:
- Not changing the item height when DataTemplate changes
- Removed IsSelected=True trigger completely
- All SelectionMode values
Do I miss something trivial?
© Stack Overflow or respective owner