Numeric keypad?

I have several instances in my application that I would prefer to use a numeric keypad. Is there one of them in WP7, and if so, how can I put this text for a text field instead of the usual one?

+4
source share
1 answer

You must use InputScope for textBox

<TextBox Name="myTextBox" InputScope="Digits"/> 

Here is a complete list of InputScopes that are expected to be supported based on the current enumeration names for InputScopeNameValue:

[NOTE] Even if you donโ€™t get the keyboard you need, you can still use it, because in the future it is possible to support it in the future (perhaps the last mango)

http://www.imaginativeuniversal.com/blog/post/2010/07/06/WP7-InputScope.aspx

  • Addresscity
  • AddressCountryName
  • AddressCountryShortName
  • AddressStateOrProvince
  • AddressStreet
  • AlphanumericFullWidth
  • Alphanumeric
  • Applicationend
  • Bopomofo
  • Chat
  • CurrencyAmount
  • CurrencyAmountAndSymbol
  • CurrencyChinese
  • the date
  • Dateday
  • DateDayName
  • Datemonth
  • DateMonthName
  • Dateyear
  • Default
  • Figures
  • EmailNameOrAddress
  • EmailSmtpAddress
  • EmailUserName
  • Enumstring
  • File name
  • Fullfilepath
  • Chania
  • Hiragana
  • KatakanaFullWidth
  • KatakanaHalfWidth
  • Logoname
  • Cards
  • NameOrPhoneNumber
  • room
  • NumberFullWidth
  • Onechar
  • Password
  • PersonalFullName
  • PersonalGivenName
  • PersonalMiddleName
  • PersonalNamePrefix
  • PersonalNameSuffix
  • Personalsurname
  • Phraselist
  • PostalAddress
  • PostalCode
  • Private
  • Regular expression
  • Search
  • Srgs
  • PhoneAreaCode
  • PhoneCountryCode
  • PhoneLocalNumber
  • Phone number
  • Text
  • Time
  • Timehor
  • TimeMinorSec
  • URL
  • Xml
  • Yomi
+13
source

All Articles