ILogicalScrollable Interface

Interface implemented by controls that handle their own scrolling when placed inside a ScrollViewer.

Definition

Namespace: Avalonia.Controls.Primitives
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public interface ILogicalScrollable : IScrollable
Implements
IScrollable

Remarks

Controls that implement this interface, when placed inside a ScrollViewer can override the physical scrolling behavior of the scroll viewer with logical scrolling. Physical scrolling means that the scroll viewer is a simple viewport onto a larger canvas whereas logical scrolling means that the scrolling is handled by the child control itself and it can choose to do handle the scroll information as it sees fit.

Properties

CanHorizontallyScroll Gets or sets a value indicating whether the content can be scrolled horizontally.
CanVerticallyScroll Gets or sets a value indicating whether the content can be scrolled horizontally.
Extent Gets the extent of the scrollable content, in logical units
(Inherited from IScrollable)
IsLogicalScrollEnabled Gets a value indicating whether logical scrolling is enabled on the control.
Offset Gets or sets the current scroll offset, in logical units.
(Inherited from IScrollable)
PageScrollSize Gets the size to page by, in logical units.
ScrollSize Gets the size to scroll by, in logical units.
Viewport Gets the size of the viewport, in logical units.
(Inherited from IScrollable)

Methods

BringIntoView(Control, Rect) Attempts to bring a portion of the target visual into view by scrolling the content.
GetControlInDirection(NavigationDirection, Control) Gets the next control in the specified direction.
RaiseScrollInvalidated(EventArgs) Raises the ScrollInvalidated event.

Events

ScrollInvalidated Raised when the scroll is invalidated.

See Also