O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Dynamic Population of the Suggestion List

Until now you have looked at using only predefined suggestion lists. There are times, however, when you may want to change the contents of the suggestion list based on what the user has entered. One example is performing a web search for the entered text and using the search results as the suggestion list. The user enters some text, and you call a website to get a list of suggestions. Once the call completes you populate the ItemsSource property of the AutoCompleteBox. This entails an asynchronous operation, which means you need some way of telling the AutoCompleteBox to dispense with filtering until the result of the asynchronous call is obtained. Fortunately, the AutoCompleteBox contains a built-in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required