Token Customization
AutoComplete provides an option to customize the template that visualize the tokens through TokenTemplate
property.
-
TokenTemplate
(DataTemplate
)—Defines the template used to visualize the tokens.
Example
Here is an example how to use the RadAutoComplete TokenTemplate
:
1. Create the needed business objects, for example type City with the following properties:
2. Create a ViewModel with a collection of City objects:
3. The following snippet shows the TokenTemplate
definition:
and the code for Label.GestureRecognizer
property:
Here is the result:
For AutoComplete Tokens Template example refer to the SDKBrowser Demo application.