AutoCompleteBoxSelectedItem Property

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

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
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