Basic Features with .NET MAUI Autocomplete (SfAutocomplete)
Selection
The .NET MAUI Autocomplete allows the user to select an item from the drop-down list by clicking the Enter
key or losing focus from the text box.
<editors:SfAutocomplete x:Name="autocomplete"
WidthRequest="250"
DisplayMemberPath = "Name"
TextMemberPath = "Name"
ItemsSource="{Binding SocialMedias}" />
autocomplete.DisplayMemberPath = "Name";
autocomplete.TextMemberPath = "Name";
The following image illustrates the output:
Text
The Text property is used to get the user-submitted text in the SfAutoComplete. The default value of the Text
property is string.Empty
.