Hinek
Hinek

Reputation: 9729

WP7: TextBox with suggestions

In the standard Windows Phone 7 apps, the soft keyboard offers you suggestions to complete the word you are typing.

When I create a WP7 app and add a normal TextBox control, these suggestions don't apprear. How do I get the TextBox to offer suggestions?

Upvotes: 3

Views: 1247

Answers (1)

Praetorian
Praetorian

Reputation: 109159

You need to set the InputScope for the TextBox; the Text InputScope turns on suggestions.

<TextBox>
  <TextBox.InputScope>
    <InputScope>
      <InputScopeName NameValue="Text" />
    </InputScope>
  </TextBox.InputScope>
</TextBox>

This blog post has a list of the InputScopes available on the phone.

Upvotes: 6

Related Questions