Skip to main content

IScrollProvider Interface

Exposes methods and properties to support access by a UI Automation client to a control that acts as a scrollable container for a collection of child objects.

Definition​

Namespace: Avalonia.Automation.Provider
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public interface IScrollProvider
View Source

Properties​

HorizontallyScrollableGets a value that indicates whether the control can scroll horizontally.
HorizontalScrollPercentGets the current horizontal scroll position.
HorizontalViewSizeGets the current horizontal view size.
VerticallyScrollableGets a value that indicates whether the control can scroll vertically.
VerticalScrollPercentGets the current vertical scroll position.
VerticalViewSizeGets the vertical view size.

Methods​

Scroll(ScrollAmount, ScrollAmount)Scrolls the visible region of the content area horizontally and vertically.
SetScrollPercent(Double, Double)Sets the horizontal and vertical scroll position as a percentage of the total content area within the control.

See Also​

Reference​

Avalonia.Automation.Provider Namespace