Table of Contents

Interface ISelectionProvider

Namespace
Avalonia.Automation.Provider
Assembly
Avalonia.Controls.dll

Exposes methods and properties to support access by a UI Automation client to controls that act as containers for a collection of individual, selectable child items.

public interface ISelectionProvider

Properties

CanSelectMultiple

Gets a value that indicates whether the provider allows more than one child element to be selected concurrently.

bool CanSelectMultiple { get; }

Property Value

bool

Remarks

Windows ISelectionProvider.CanSelectMultiple
macOSNo mapping.

IsSelectionRequired

Gets a value that indicates whether the provider requires at least one child element to be selected.

bool IsSelectionRequired { get; }

Property Value

bool

Remarks

Windows ISelectionProvider.IsSelectionRequired
macOSNo mapping.

Methods

GetSelection()

Retrieves a provider for each child element that is selected.

IReadOnlyList<AutomationPeer> GetSelection()

Returns

IReadOnlyList<AutomationPeer>

Remarks

Windows ISelectionProvider.GetSelection
macOS NSAccessibilityProtocol.accessibilitySelectedChildren (not implemented).