Telerik UI for Windows Phone by Progress

To use RadAutoCompleteBox you need to reference the needed assmeblies and bind its SuggestionsSource property to a collection of strings that will be used to provide suggestions.

Adding RadAutoCompleteBox to your page

The following XAML code snippet demonstrates how to add an instance of RadAutoCompleteBox to your page:

<telerikInput:RadAutoCompleteBox x:Name="radAutoCompleteBox"/>

After adding a RadAutoCompleteBox instance to your page, you can initialize its SuggestionsSource property so that suggestions can be shown while the user types in some text. The following C# code snippet demonstrates how to prepare a list of strings as a suggestions source:

List<string> suggestions = new List<string>();

for (int i = 0; i < 50; i++)
    suggestions.Add("Suggestion " + i);

this.radAutoCompleteBox.SuggestionsSource = suggestions;

After completing these steps RadAutoCompleteBox will be ready to use.


You bind the SuggestionsSource property to a collection of more complex business objects and define which property will on the business object will be used to filter suggestions. This is explained in the Using Complex Business Objects topic in the Features category.

See Also

Other Resources