ScrollViewer
Scrollable viewport with keyboard and mouse wheel navigation.
Overview
The ScrollViewer control extends ContentControl to wrap any single
child element in a scrollable viewport. When the content is taller (or wider) than the available
space, ScrollViewer renders the child to an intermediate buffer and blits the visible region
to the screen. Scroll indicators on the viewport edges show the current position.
Key Concepts
VerticalScrollBarVisibility/HorizontalScrollBarVisibility—Auto,Visible,Hidden,Disabled- Keyboard: arrow keys (1 row), Page Up/Down (viewport height), Home/End (top/bottom), Ctrl+Home/End (top-left/bottom-right)
- Mouse wheel: 3 lines per scroll tick
- Scroll indicator: proportional thumb (
█) on a track (░) ScrollIntoView(row)for programmatic scrollingViewportWidth,ViewportHeight,ExtentWidth,ExtentHeightcomputed properties