开发者

How could I create a custom behavior with datavalidation in wpf?

开发者 https://www.devze.com 2023-03-15 06:37 出处:网络
I want to make a WPF control that will perfor开发者_开发问答m a custom behavior when validation fails (IE turn blue or change an arbitrary DP on the control).You could add validation visual states to

I want to make a WPF control that will perfor开发者_开发问答m a custom behavior when validation fails (IE turn blue or change an arbitrary DP on the control).


You could add validation visual states to the control or apply a special ErrorTemplate these could take care of visual requirements such as turning blue.

Setting a property or calling a method could be done by subscribing to the Error event of the Validation class.

0

精彩评论

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