摘要:
效果 还是准备一个ViewModel 在要验证的属性上面添加验证特性 1 public class ViewModel 2 { 3 private int _age; 4 5 private string _eMail; 6 7 private string _name; 8 9 [Range(0, 阅读全文
摘要:
效果 首先准备一个ViewModel类 实现IDataErrorInfo接口 1 public class ViewModel : INotifyPropertyChanged, IDataErrorInfo 2 { 3 private string _error; 4 5 public int A 阅读全文