Back to Devexpress

AutoCompleteEdit.SelectedItem Property

maui-devexpress-dot-maui-dot-editors-dot-autocompleteedit-3a70ce14.md

latest2.1 KB
Original Source

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

csharp
public object SelectedItem { get; set; }

Property Value

TypeDescription
System.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:

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

AutoCompleteEdit Class

AutoCompleteEdit Members

DevExpress.Maui.Editors Namespace