【发布时间】:2013-11-28 11:19:38
【问题描述】:
我已经使用IDataErrorInfo 接口实现了用户控件的验证。现在,我在 Parent UserControl 中使用这个 userControl。在父用户控件中,我有一个保存按钮。我想将此父级的保存按钮绑定到 Clild UserControl 的 Validation.HasError 属性。
实现这一点的最佳方法是什么。我实际上在父 userControl 中有 3 个这样的用户控件。我想对每个子用户控件的 Validation.HasError 属性进行 OR 操作
【问题讨论】:
标签: c# wpf validation xaml idataerrorinfo