2

how do you get a windows 8 store app to display only a numeric keypad? I want the user to see only a numeric keypad when they click into a TextBox

4

1 回答 1

0

您必须在元素上设置输入范围,例如

      <TextBox x:Name="txtBox" InputScope="Number" />

请记住,这只会获得数字键盘。用户仍然可以手动更改为字母数字键盘并输入文本。您仍然需要验证条目。

于 2013-01-25T10:11:13.447 回答