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

Using AutoCompleteBox with MVVM

This section looks at controlling an AutoCompleteBox from a viewmodel. The example code for this section is located in the AutoCompleteBoxView and AutoCompleteBoxViewModel in the downloadable sample code.

AutoCompleteBox provides various ways for selecting the items to be displayed in the suggestion list. The AutoCompleteBox.FilterMode property allows you to specify how entered text is matched with items in the suggestion list. When a match occurs, the item is displayed in the selection list. If AutoCompleteFilterMode is not specified, the StartsWith filter mode is used, which is not a case-sensitive filter, where the returned items start with the entered text. Table 9.1 lists the FilterMode values.

TABLE 9.1. ...

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