摘要: silverlight 或WPF在MVVM模式中使用INotifyDataErrorInfo接口对输入进行验证时控件lostFocus时会触发验证,但在提交动作(例如button的Command)时,不触发验证。下面的方法提供控件输入验证统一触发。1、添加ValidationScope类public... 阅读全文
posted @ 2014-10-17 10:18 akiing 阅读(494) 评论(0) 推荐(1) 编辑