Table of Contents

Class ItemsControlAutomationPeer

Namespace
Avalonia.Automation.Peers
Assembly
Avalonia.Controls.dll
public class ItemsControlAutomationPeer : ControlAutomationPeer, IScrollProvider
Inheritance
ItemsControlAutomationPeer
Implements
Derived
Inherited Members

Constructors

ItemsControlAutomationPeer(ItemsControl)

public ItemsControlAutomationPeer(ItemsControl owner)

Parameters

owner ItemsControl

Properties

HorizontalScrollPercent

Gets the current horizontal scroll position.

public double HorizontalScrollPercent { get; }

Property Value

double

Remarks

Windows IScrollProvider.HorizontalScrollPercent
macOSNo mapping.

HorizontalViewSize

Gets the current horizontal view size.

public double HorizontalViewSize { get; }

Property Value

double

Remarks

Windows IScrollProvider.HorizontalViewSize
macOSNo mapping.

HorizontallyScrollable

Gets a value that indicates whether the control can scroll horizontally.

public bool HorizontallyScrollable { get; }

Property Value

bool

Remarks

Windows IScrollProvider.HorizontallyScrollable
macOSNo mapping.

Owner

public ItemsControl Owner { get; }

Property Value

ItemsControl

Scroller

protected virtual IScrollProvider? Scroller { get; }

Property Value

IScrollProvider

VerticalScrollPercent

Gets the current vertical scroll position.

public double VerticalScrollPercent { get; }

Property Value

double

Remarks

Windows IScrollProvider.VerticalScrollPercent
macOSNo mapping.

VerticalViewSize

Gets the vertical view size.

public double VerticalViewSize { get; }

Property Value

double

Remarks

Windows IScrollProvider.VerticalViewSize
macOSNo mapping.

VerticallyScrollable

Gets a value that indicates whether the control can scroll vertically.

public bool VerticallyScrollable { get; }

Property Value

bool

Remarks

Windows IScrollProvider.VerticallyScrollable
macOSNo mapping.

Methods

GetAutomationControlTypeCore()

protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType

Scroll(ScrollAmount, ScrollAmount)

Scrolls the visible region of the content area horizontally and vertically.

public void Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount)

Parameters

horizontalAmount ScrollAmount

The horizontal increment specific to the control.

verticalAmount ScrollAmount

The vertical increment specific to the control.

Remarks

Windows IScrollProvider.Scroll
macOSNo mapping.

SetScrollPercent(double, double)

Sets the horizontal and vertical scroll position as a percentage of the total content area within the control.

public void SetScrollPercent(double horizontalPercent, double verticalPercent)

Parameters

horizontalPercent double

The horizontal position as a percentage of the content area's total range. NoScroll should be passed in if the control cannot be scrolled in this direction.

verticalPercent double

The vertical position as a percentage of the content area's total range. NoScroll should be passed in if the control cannot be scrolled in this direction.

Remarks

Windows IScrollProvider.SetScrollPercent
macOSNo mapping.