예제 #1
0
 protected void RaisePropertyChanged(params Expression <Func <object> >[] propertyExpressions)
 {
     for (var i = 0; i < propertyExpressions.Length; i++)
     {
         var propertyExpression = propertyExpressions[i];
         OnPropertyChanged(PropertySupport.ExtractPropertyName(propertyExpression));
     }
 }
예제 #2
0
        protected void RegisterError <T>(Expression <Func <T> > propertyExpression, object error)
        {
            var propertyName = PropertySupport.ExtractPropertyName(propertyExpression);

            RegisterError(propertyName, error);
        }
예제 #3
0
        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));
        }
예제 #4
0
        protected object GetError <T>(Expression <Func <T> > propertyExpression)
        {
            var propertyName = PropertySupport.ExtractPropertyName(propertyExpression);

            return(GetError(propertyName));
        }