Skip to main content

SelectedItem Property

Gets or sets the selected item.

Definition

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

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

Reference

TreeView Class
Avalonia.Controls Namespace