Usage
How you write the search function determines whether or not the Autocomplete shows a full list initially. By setting ResetValueOnEmptyText="true"
the value will be reset when the user clears the input text. Otherwise, the value is kept and the text coerced to the current value.
Presentation
When you use objects, Autocomplete uses ToString()
to convert the object into text form. You can set a custom ToStringFunc
to override how the list items are stringified. This string representation is also what you'll get as input to the search function.
If that is not enough, you can define an <ItemTemplate>
and even an <ItemSelectedTemplate>
to create highly sophisticated list item presentations.
Selected values: