Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Windows Phone Mango Sample: Input Scope

DZone's Guide to

Windows Phone Mango Sample: Input Scope

· Mobile Zone
Free Resource

Download this comprehensive Mobile Testing Reference Guide to help prioritize which mobile devices and OSs to test against, brought to you in partnership with Sauce Labs.

Windows Phone has an on-screen keyboard. We call it the SIP (Software Input Panel). It appears when users give focus to a TextBox. The configuration of SIP keys varies by how the developer sets up the TextBox’s InputScope property.

image

Here are three configurations (mango has 57):

image image image

On the far left is the DIGIT configuration. Remember, SIP configuration is meant to be an aid to the user, not a validation tool. Users can still use a physical keyboard to type in alpha characters, or use the clipboard to paste. Even with DIGIT, letters are possible.

HoW to Define InputScope in code-behind:

image

How to Define InputScope in XAML

image

Some Important InputScopes

Text

Standard layout with features such as autocorrect and text suggestion

Url

Standard layout with .com and customized Enter key for typing URLs.

EmailNameOrAddress

Standard layout with .com and @ key, and easy access to phone number layout.

Maps

Standard layout with a customized Enter key. Used to type a location to search for on a map

TelephoneNumber

12-key layout

Search

Semi-transparent layout with a Search and .com key.

NameOrPhoneNumber

Standard layout with access to phone number layout. Used to type in the SMS To field

Chat

Text input that uses intelligent features such as abbreviations

Read more here.

Source: http://blog.jerrynixon.com/2011/11/mango-sample-input-scope.html

Analysts agree that a mix of emulators/simulators and real devices are necessary to optimize your mobile app testing - learn more in this white paper, brought to you in partnership with Sauce Labs.

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}