Scrolling
Introduction
Gum includes controls which have built-in scrolling support. These are:
ListBoxItemsControlScrollViewer
Both ListBox and ItemsControl inherit from ScrollViewer, so many of the properties for scrolling are the same across all controls.
Built-In Scrolling Behavior
All controls support the following built-in actions for scrolling:
Mouse/touch screen interactions with scroll bars
Mouse wheel scrolling
Touch screen swipe scrolling
Scrolling Speed
Scrolling speed is controlled by the following two variables:
SmallChange- The amount to scroll when a scroll bar button is clicked, or when a tick is scrolled on the mouse wheelLargeChange- The amount to scroll when the user clicks on the scroll bar track
The following code creates two ListBoxes to compare the scrolling speed of each.

Last updated
Was this helpful?

