Tritium UI
TritiumAutoComplete
Filter a list as the user types and bind both the text and the chosen item.
Key features
- Filter with Contains or StartsWith after a minimum number of characters.
- Bind ItemsSource to strings or objects and select a match into SelectedItem.
- Keep Text two-way so you can drive the box from code.
- Show a busy state while you replace the list from a search.
- Opt in to haptic or sound feedback when a suggestion is chosen.
- Hide the suggestion list after a selection.
Platforms
Android, iOS, Mac Catalyst, and Windows 10 version 19041 and later (.NET 10 MAUI).
Main API
- ItemsSource . The candidates to filter.
- Text . The current typed text, two-way.
- SelectedItem . The suggestion the user picked, two-way.
- FilterMode . Contains or StartsWith, after MinimumPrefixLength characters.
Basic example
Declare this namespace on the page.
xmlns:editors="clr-namespace:Tritium.Maui.Editors;assembly=Tritium.Maui.Editors"
<editors:TritiumAutoComplete ItemsSource="{Binding Cities}"
Text="{Binding CityQuery}"
SelectedItem="{Binding City}"
FilterMode="Contains"
MinimumPrefixLength="1" /> Add the package source from your license, then reference the package that includes this control. These packages are not on the public NuGet Gallery.