Reputation: 1274
I have several instances in my application that I would prefer to use a numerical keyboard. Does one exist in WP7 and if so, how would I go about popping that one up for a text box instead of the normal one?
Upvotes: 4
Views: 2792
Reputation: 13496
You should use InputScope for the textBox
<TextBox Name="myTextBox" InputScope="Digits"/>
Here is the full list of InputScopes that are expected to be supported, based on the current enum names for InputScopeNameValue:
[NOTE] Even if you don't get the keyboard you want, you can still use it because it is highly possible to be supported in the future (final Mango probably)
http://www.imaginativeuniversal.com/blog/post/2010/07/06/WP7-InputScope.aspx
Upvotes: 13