Table of Contents

Class ListItemAutomationPeer

Namespace
Avalonia.Automation.Peers
Assembly
Avalonia.Controls.dll
public class ListItemAutomationPeer : ContentControlAutomationPeer, ISelectionItemProvider
Inheritance
ListItemAutomationPeer
Implements
Inherited Members

Constructors

ListItemAutomationPeer(ContentControl)

public ListItemAutomationPeer(ContentControl owner)

Parameters

owner ContentControl

Properties

IsSelected

Gets a value that indicates whether an item is selected.

public bool IsSelected { get; }

Property Value

bool

Remarks

Windows ISelectionItemProvider.IsSelected
macOS NSAccessibilityProtocol.isAccessibilitySelected

SelectionContainer

Gets the UI Automation provider that implements ISelectionProvider and acts as the container for the calling object.

public ISelectionProvider? SelectionContainer { get; }

Property Value

ISelectionProvider

Remarks

Windows ISelectionItemProvider.SelectionContainer
macOSNo mapping.

Methods

GetAutomationControlTypeCore()

protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType

IsContentElementCore()

protected override bool IsContentElementCore()

Returns

bool

IsControlElementCore()

protected override bool IsControlElementCore()

Returns

bool

Select()

Clears any existing selection and then selects the current element.

public void Select()

Remarks

Windows ISelectionItemProvider.Select
macOSNo mapping.