コード例 #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));
        }