Ejemplo n.º 1
0
 protected void RaisePropertyChanged(params Expression <Func <object> >[] propertyExpressions)
 {
     for (int i = 0; i < propertyExpressions.Length; i++)
     {
         Expression <Func <object> > propertyExpression = propertyExpressions[i];
         OnPropertyChanged(PropertySupport.ExtractPropertyName(propertyExpression));
     }
 }
Ejemplo n.º 2
0
        protected virtual bool SetProperty <T>(ref T storage, T value, Expression <Func <T> > propertyExpression)
        {
            string propertyName = PropertySupport.ExtractPropertyName(propertyExpression);

            return(SetProperty(ref storage, value, propertyName));
        }
        protected virtual bool Set <T>(Expression <Func <T> > propertyExpression, T value)
        {
            string propertyName = PropertySupport.ExtractPropertyName(propertyExpression);

            return(Set <T>(propertyName, value));
        }
        protected virtual T Get <T>(Expression <Func <T> > propertyExpression)
        {
            string propertyName = PropertySupport.ExtractPropertyName(propertyExpression);

            return(Get <T>(propertyName));
        }
Ejemplo n.º 5
0
        protected void RegisterError <T>(Expression <Func <T> > propertyExpression, object error)
        {
            string propertyName = PropertySupport.ExtractPropertyName(propertyExpression);

            RegisterError(propertyName, error);
        }
Ejemplo n.º 6
0
        protected object GetError <T>(Expression <Func <T> > propertyExpression)
        {
            string propertyName = PropertySupport.ExtractPropertyName(propertyExpression);

            return(GetError(propertyName));
        }