Hello All
I am trying to implement MVVM and use IDataErrorInfo interface to validate data in the model classes
I base model class implementing IDataErrorInfo interface
Now I want drive a class from Base classCode:public class BaseClass: IDataErrorInfo { <Properties and Members of BaseClass> #region IDataErrorInfo public string Error { get { return String.Empty; } } public string this[string PropertyName] { get { return this.GetValidationError(PropertyName); } } #endregion }
How do I use IDataErrorInfo members in the derived class to carryout validation of the properties in the derived class??Code:public class DrivedClass: BaseClass { }




Reply With Quote