Skip to main content

IScrollable Interface

Definition

Assembly:Avalonia.Base
Package:Avalonia

Interface implemented by scrollable controls.

public interface IScrollable

Properties

NameDescription
CanHorizontallyScrollGets a value indicating whether the content can be scrolled horizontally.
CanVerticallyScrollGets a value indicating whether the content can be scrolled horizontally.
ExtentGets the extent of the scrollable content, in logical units
OffsetGets or sets the current scroll offset, in logical units.
ViewportGets the size of the viewport, in logical units.

CanHorizontallyScroll Property

Gets a value indicating whether the content can be scrolled horizontally.

public bool CanHorizontallyScroll { get; set; }

CanVerticallyScroll Property

Gets a value indicating whether the content can be scrolled horizontally.

public bool CanVerticallyScroll { get; set; }

Extent Property

Gets the extent of the scrollable content, in logical units

public Avalonia.Size Extent { get; set; }

Offset Property

Gets or sets the current scroll offset, in logical units.

public Avalonia.Vector Offset { get; set; }

Viewport Property

Gets the size of the viewport, in logical units.

public Avalonia.Size Viewport { get; set; }