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