Tritium UI

TritiumAutoComplete

Filter a list as the user types and bind both the text and the chosen item.

TritiumAutoComplete

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.

Ask Tritium

How-to help and product fit for FleetPro, Tritium UI, and Tritium Reporting.

Ask how to use a feature, or tell us your company, platforms, team size, and use case. Pricing and upgrades go to sales.

Product fit
Contact sales

Search the FAQ