SelectedItem Property
Gets or sets the selected item in the drop-down.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public Object? SelectedItem { get; set; }
Public Property SelectedItem As Object
Get
Set
member SelectedItem : Object with 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.