private string _lastName; [Required] [StringLength(20)] public string LastName { get {return this._lastName;} set { if(value != this.-lastName) { ValidateProperty(value); this._lastName = value; RaisePropertyCanged("LastName"); } } }
Maciej Los wrote: Are you talking about validation in Model or ViewModel? Member 12658724 wrote: ViewModel
Member 12658724 wrote: ViewModel
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)