开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜