开发者

How to Implement dependency property on Textbox that allows numeric or alphanumeric values

开发者 https://www.devze.com 2023-03-26 19:48 出处:网络
I am using a textbox开发者_JAVA技巧 in a WPFApplication and I want to implement a dependency property that will decide whether textbox allow input as numeric or alphanumeric.there are at least three w

I am using a textbox开发者_JAVA技巧 in a WPFApplication and I want to implement a dependency property that will decide whether textbox allow input as numeric or alphanumeric.


there are at least three ways to do this.
1) derive a sub-class, adding your dependency property
2) create an attached property
3) create and attach a behavior (using the expression SDK)

0

精彩评论

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