Skip to main content

SelectedItems Property

Gets or sets the selected items.

Definition

Namespace: Avalonia.Controls.Primitives
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

protected IList? SelectedItems { get; set; }

Property Value

IList

Remarks

By default returns a collection that can be modified in order to manipulate the control selection, however this property will return null if Selection is re-assigned; you should only use either Selection or SelectedItems.

See Also

Reference

SelectingItemsControl Class
Avalonia.Controls.Primitives Namespace