更改 Windows Phone 7 上密码文本框的输入范围
如何才能完成与更改 WP7 中密码文本框的输入范围等效的操作?他们没有输入范围字段,所以我不知道该怎么做。
我想要一个只能使用数字作为密码的密码框,就像手机锁屏一样。
谢谢
How can you do the equivalent of changing the input scope on the password text boxes in WP7? They don't have an input scope field so I'm not sure how to do it.
I'd like to have a password box where you can only use digits as your password, like the phone lock screen.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
无法设置PasswordBox 的输入范围。如果您确实必须这样做,则必须创建自己的控件。
如果制作您自己的手机锁屏版本,我建议您使用
TextBlock
和一些 (12)Buttons
而不是密码框或文本框。There is no way to set the inputscope of the PasswordBox. If you really must do this you'll have to create your own control.
If making your own version of the phone lock screen I'd recommend looking at using a
TextBlock
and a number (12) ofButtons
rather than a PasswordBox or TextBox.是的,正如马特所说,最简单的事情就是
根据您的要求操作 textbox.text 属性。这比实施新的控制要容易得多。
Yes as Matt says, the easy thing to do would be to have the
to manipulate the textbox.text property according to your requirement. This will be much easier than implementing a new control.