Summary
Gets or sets the selected item.
- Namespace
- Avalonia
.Controls - Containing Type
- TreeView
Syntax
public object SelectedItem { get; set; }
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`.
Value
Type | Description |
---|---|
object |