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?