开发者

WP7-Control to enter numeric data?

I've got a WP7 app where I need to enter large numeric data (6 digits and more) - is there some kind of开发者_JAVA百科 advanced numeric control to enter large numbers comfortably?


By comfortably, do you mean the keyboard that comes up? Or that you don't want to use a keyboard at all?

In Silverlight, I believe that one way to set the type of keyboard is set the scope of the input for the TextBox... so in XAML:

<TextBox InputScope=”Number” …/>

or for a phone keypad

<TextBox InputScope=”TelephoneNumber” …/>


This post seems to outline a cleaner way to limit input to numerics only than what I previously wrote (deleting that).

Making TextBox Numbers Only for Windows Phone 7

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜