阅读背景:

这是一种使用IDataError和WPF处理多验证类型的疯狂方法吗?

来源:互联网 

We are using the standard method for our controls to report broken BO rules. This is done via the interface IDataError in our BO’s and in XAML the control is bound to the BO’s property etc. This approach works OK. But we need to show 2 types of visuals in the UI depending on the type (or category if you like) of the invalidation error. If it’s a required field then we show a CueBanner (water mark) but for other types we change the colour of the controls boarder. In both scenarios we set the tool type of the error message.We are using the standard method for our contro




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: