蒙版的TextBox银色 [英] Masked TextBox in silver
本文介绍了蒙版的TextBox银色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我该如何屏蔽文本框?输入字符串为25,但在文本框中应显示为:000000025
How can I mask textbox right that? input string is 25, but in textbox should display like this: 000000025
推荐答案
您可以通过继承textbox
来创建自己的控件,然后向其中添加代码在代码之前插入零.
第二种选择是使用带遮罩的文本框.
您可以使用 Silverlight超级文本框(组合框,蒙版文本框等)中的一个 [ http://www.componentone.com/SuperProducts/MaskedTextBoxSilverlight/ [
You can either create your own control by inheriting from atextbox
and then adding code to insert zeros before the code.
The second option would be to use a masked text box.
You can use one from Silverlight Super TextBox (ComboBox, Masked TextBox and More)[^] or http://www.componentone.com/SuperProducts/MaskedTextBoxSilverlight/[^].
这篇关于蒙版的TextBox银色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文