开发者

WP7-Control to enter numeric data?

开发者 https://www.devze.com 2023-01-21 08:01 出处:网络
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 y

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

精彩评论

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