Xamarin.Forms.EntryAutoComplete is a custom control which functionality provides you with suggestions while typing. There are several modes of suggestions. The suggested text can be displayed in a drop-down list so that you can choose from different options.
- Custom search
- Filtering
- MaximumVisibleElements
- MinimumPrefixCharacter
- Watermark
- Clear button
- Style support for Android
- Style support for iOS
- Xamarin.Forms >= 3.1.0.697729
Available as a NuGet package.
Install-Package Xamarin.Forms.EntryAutoComplete -Version 1.0.0
Reference the assembly namespace
xmlns:customControl="clr-namespace:EntryAutoComplete;assembly=EntryAutoComplete"
<customControl:EntryAutoComplete
VerticalOptions="CenterAndExpand"
Placeholder="Enter country..."
ItemsSource="{Binding Countries}"
SearchText="{Binding SearchCountry}"
SearchMode="{Binding SearchMode}"
MaximumVisibleElements="5"/>
var entryAutoComplete = new EntryAutoComplete
{
VerticalOptions = LayoutOptions.CenterAndExpand,
Placeholder = "Enter country...",
PlaceholderColor = Color.LightGray,
MaximumVisibleElements = 5
};
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.