Input Scope

The InputScope property determines the set of keys and layout provided on the SIP. This value allows you to provide the user with a specialized keyboard, particular to the data that is being entered.

The following code demonstrates how to change the default alphanumeric SIP to one containing telephone digits, suitable for allowing the user to enter a telephone number:

<TextBox InputScope="TelephoneNumber" />

The InputScope is specified using one of the values from the InputScopeNameValue enum (see Table 6.3).

TABLE 6.3. InputScopeNameValue Enum Values


Most of the InputScopeNameValue enum values are mapped to a particular keyboard ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.