Skip to main content

AutoCompleteEdit.SelectedItem Property

Gets or sets the item that is selected in the AutoCompleteEdit‘s drop-down list. This is a bindable property.

Namespace: DevExpress.Maui.Editors

Assembly: DevExpress.Maui.Editors.dll

NuGet Package: DevExpress.Maui.Editors

Declaration

public object SelectedItem { get; set; }

Property Value

Type Description
Object

The item that is selected in the AutoCompleteEdit‘s drop-down list.

Remarks

The following image shows an item selected in the edit box of an AutoCompleteEdit:

DevExpress AutoCompeteEdit for MAUI - Selected item

After the selected item is changed, the editor’s SelectionChanged event is raised. Handle the event or execute the SelectionChangedCommand with SelectedItem as the command parameter to add custom logic when changing selected items.

If you use the ItemsSourceProvider property, the setter of the SelectedItem property only sets the value and does not change the visual state such as the DisplayText property or focused state. If you want to change the editor’s visual state, use Text property and Unfocus() method.

See Also