Skip to main content

ISelectionProvider Interface

Definition

Assembly:Avalonia.Controls
Package:Avalonia

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

Methods

NameDescription
GetSelectionRetrieves a provider for each child element that is selected.

GetSelection Method

Retrieves a provider for each child element that is selected.

public System.Collections.Generic.IReadOnlyList<Avalonia.Automation.Peers.AutomationPeer> GetSelection()

Returns

System.Collections.Generic.IReadOnlyList<Avalonia.Automation.Peers.AutomationPeer>

Remarks

  • WindowsISelectionProvider.GetSelection
  • macOSNSAccessibilityProtocol.accessibilitySelectedChildren (not implemented).

Properties

NameDescription
CanSelectMultipleGets a value that indicates whether the provider allows more than one child element to be selected concurrently.
IsSelectionRequiredGets a value that indicates whether the provider requires at least one child element to be selected.

CanSelectMultiple Property

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

public bool CanSelectMultiple { get; set; }

Remarks

  • WindowsISelectionProvider.CanSelectMultiple
  • macOSNo mapping.

IsSelectionRequired Property

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

public bool IsSelectionRequired { get; set; }

Remarks

  • WindowsISelectionProvider.IsSelectionRequired
  • macOSNo mapping.