Skip to main content

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)

public interface ILogicalScrollable : IScrollable
View Source
ImplementsIScrollable

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

CanHorizontallyScrollGets or sets a value indicating whether the content can be scrolled horizontally.
CanVerticallyScrollGets or sets a value indicating whether the content can be scrolled horizontally.
ExtentGets the extent of the scrollable content, in logical units
(Inherited from IScrollable)
IsLogicalScrollEnabledGets a value indicating whether logical scrolling is enabled on the control.
OffsetGets or sets the current scroll offset, in logical units.
(Inherited from IScrollable)
PageScrollSizeGets the size to page by, in logical units.
ScrollSizeGets the size to scroll by, in logical units.
ViewportGets 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

ScrollInvalidatedRaised when the scroll is invalidated.

See Also

Reference

Avalonia.Controls.Primitives Namespace