protected void RaisePropertyChanged(params Expression <Func <object> >[] propertyExpressions) { for (var i = 0; i < propertyExpressions.Length; i++) { var propertyExpression = propertyExpressions[i]; OnPropertyChanged(PropertySupport.ExtractPropertyName(propertyExpression)); } }
protected void RegisterError <T>(Expression <Func <T> > propertyExpression, object error) { var propertyName = PropertySupport.ExtractPropertyName(propertyExpression); RegisterError(propertyName, error); }
protected virtual bool SetProperty <T>(ref T storage, T value, Expression <Func <T> > propertyExpression) { var propertyName = PropertySupport.ExtractPropertyName(propertyExpression); return(SetProperty(ref storage, value, propertyName)); }
protected object GetError <T>(Expression <Func <T> > propertyExpression) { var propertyName = PropertySupport.ExtractPropertyName(propertyExpression); return(GetError(propertyName)); }