Skip to main content

AutoSuggestBox

Description​

Use AutoSuggestBox for search and autocomplete: handle TextChanged to filter suggestions and QuerySubmitted to act on the choice.

AutoSuggestBox in light mode AutoSuggestBox in dark mode

Example usage​

<fluence:AutoSuggestBox PlaceholderText="Search" ItemsSource="{Binding Suggestions}" />

State and behavior​

Handle TextChanged to filter ItemsSource; the control does not filter the collection automatically. Handle QuerySubmitted when the user submits text or chooses a suggestion.

Reference​