SelectedItem Property
Gets or sets the selected item.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public Object? SelectedItem { get; set; }
Public Property SelectedItem As Object
Get
Set
member SelectedItem : Object with get, set
Property Value
ObjectRemarks
Note that setting this property only currently works if the item is expanded to be visible. To select non-expanded nodes use Selection.SelectedIndex
.