Exemple #1
0
 protected virtual void RaisePropertyChanged <T>(Expression <Func <T> > propertyExpression)
 {
     if (PropertyChanged != null)
     {
         PropertyChangedHelper.RaisePropertyChanged(this, PropertyChanged, propertyExpression);
     }
 }
Exemple #2
0
 protected void SetProperty <T>(ref T backingField, T newValue, Expression <Func <T> > propertyExpression)
 {
     PropertyChangedHelper.SetProperty(this, PropertyChanged, ref backingField, newValue, propertyExpression);
 }