开发者

WPF - Why isn't ValidationRule a DependencyObject?

开发者 https://www.devze.com 2022-12-13 07:45 出处:网络
Is there 开发者_运维技巧a technical reason why ValidationRule is not a DependencyObject?Unfortunately in WPF who you derive from is often the difference between something that just works and something

Is there 开发者_运维技巧a technical reason why ValidationRule is not a DependencyObject?


Unfortunately in WPF who you derive from is often the difference between something that just works and something that is totally useless. But in general, the class designers want to pick the least possible base class that they needed. There's really no reason that ValidationRule needs to be tied to WPF at all other than the fact that it's defined in a WPF assembly. But as we're finding out, that makes it quite painful to do what you're trying to do.

0

精彩评论

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