Skip to main content

SelectedItem Property

Gets or sets the selected item in the drop-down.

Definition​

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

public Object? SelectedItem { get; set; }

Property Value​

Object
The selected item in the drop-down.

Remarks​

If the IsTextCompletionEnabled property is true and text typed by the user matches an item in the ItemsSource collection, which is then displayed in the text box, the SelectedItem property will be a null reference.

See Also​

Reference​

AutoCompleteBox Class
Avalonia.Controls Namespace