Whenever you need to display a long list of items to choose from, such as a list of countries or titles, the end-user will expect you to provide word suggestions based on what they type. That’s why the AutoComplete has become a staple UI component in all modern apps. The .NET MAUI AutoComplete comes with token support (users can search for and select several items in one control, which appear as tokens), filtering, suggest modes and much more.
You can enable users to search for and select several items, such as tags or email recipients, in one control with the help of tokens. Selected items appear as tokens that can easily be deselected through a close button.
The AutoComplete’s built-in filtering mechanism can be further customized, for example, you can display items that either "Start With" or "Contain" any of the input characters – or use your custom logic.
The control offers support for remote search, which enables you to trigger a custom search algorithm. In this way, the user can enter a certain number of characters before the search is triggered, which trims down the filtered results that have to be displayed.
The AutoComple control comes with three modes for providing suggestions:
With the .NET MAUI AutoComplete DisplayTextFormatter, you can customize the text in the editable area of the control to display additional information for the selected item or change the formatting of tokens.
If your project requires something different from what the default AutoComplete templates offer, you can easily define custom templates. The control comes with rich customization options for its various elements:
The flexible API allows you to configure the control to perfectly match your project requirements.