Numeric keyboard on Windows Phone 7

15 Nov

Typing on a smartphone can be somewhat of a challenge. Therefore as much help as possible is often preferred. When the user selects a TextBox in a Windows Phone 7 app it will show the normal alphanumeric keyboard by default.

If the user should input a numeric value it would be a help for the user that the numeric keyboard was show as default instead. The trick is to set the InputScope property. Setting InputScope="CurrencyAmount" on a TextBox will force the numeric keyboard to be show.

//xamlgeek

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: