TreeViewSelectedItem Property

Gets or sets the selected item.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public Object? SelectedItem { get; set; }

Property Value

Object

Remarks

Note that setting this property only currently works if the item is expanded to be visible. To select non-expanded nodes use `Selection.SelectedIndex`.

See Also