Scroll Viewer
The scroll viewer control can have content that is bigger than its content zone, and will can provide scroll bars to move hidden content into view.
A ScrollViewer
cannot be contained in a control that has infinite height or width (depending on scrolling direction) such as a StackPanel
. To avoid it, you can either set fixed Height/Width or MaxHeight/MaxWidth or choose another container panel.
Useful Properties
You will probably use these properties most often:
Property | Description |
---|---|
AllowAutoHide | Boolean, default is true. Sets whether the scroll bar hides itself automatically when the pointer is not over, or it does not have the focus. |
ScrollViewer . IsScrollChainingEnabled | Boolean, default is true. Attached to an inner controlSee below for more details. |