IScrollView
Abstraction over a scrollable view, exposing scroll offset, viewport and content sizing information, and the common controls for programmatic scrolling.
Properties
The element that holds the full content, which may be only partially visible within the viewport.
The visible window into ; content outside this region is clipped.
True when the scroll offset has reached (or passed) the end of the scrollable range.
Enables or disables the underlying gesture recognizer. When false, the scroll view stops responding to user input.
When true, the scroll view continues to scroll with a decaying velocity after the user releases a touch drag.
When true, the scroll view snaps to full pages instead of allowing free scrolling.
Optional predicate consulted at the end of a pan gesture. When it returns true, the scroll view suppresses its usual end-of-pan handling (settling, inertia, paging snap).
When true, the first item is laid out at the end and subsequent items are laid out before it. For horizontal layouts, the effective direction also depends on RightToLeft.IsEnabled.
When true, assignments to are ignored, effectively freezing the scroll position.
When true, the scroll view responds to mouse scroll wheel events.
Invoked when changes; the callback receives the new scrollable size.
An offset subtracted from the viewport size when computing the size of a page. Only applies when is true.
When true, the scroll view will not automatically clamp its value when the scrollable size changes. Useful when external code is managing the scroll offset directly.
The total amount of scrollable distance, equal to the content size minus the viewport size. Returns zero when the content fits within the viewport.
When true, the edges of the scroll view fade out visually to indicate that more content exists beyond the viewport.
The current scroll offset along the scroll axis. Setting this value notifies value-changed listeners unless is true.
The size of the viewport along the scroll axis, including its padding.
The world-space bounding rectangle of the scroll view.
Methods
Shift the current scroll offset and related internal anchors by the given delta without firing a change notification. Useful when content is inserted or removed and the visible position should be preserved.
Parameters
offset
Returns
Stop any in-progress scroll animation immediately, leaving the scroll offset at its current value.
Returns
Scroll to the beginning of the content (offset = 0).
Parameters
animationDuration
Duration of the scroll animation in seconds. Zero scrolls instantly.
Returns
Scroll to the end of the content (offset = ).
Parameters
animationDuration
Duration of the scroll animation in seconds. Zero scrolls instantly.
Returns
Scroll to an absolute offset along the scroll axis.
Parameters
offset
Target scroll offset, clamped to [0, ].
animationDuration
Duration of the scroll animation in seconds. Zero scrolls instantly.
propagateAnimation
When false, the scroll-end notification is suppressed.