Esempio n. 1
0
        /// <summary>
        /// Raises the property changed.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="propertyExpression">The property expression.</param>
        protected virtual void RaisePropertyChanged <T>(Expression <Func <T> > propertyExpression)
        {
            var handler = PropertyChanged;

            if (null == handler)
            {
                return;
            }
            var property = RuntimeHelper.GetPropertyName(propertyExpression);

            handler(this, new PropertyChangedEventArgs(property));
        }
Esempio n. 2
0
 /// <summary>
 /// Raises the property changed.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="propertyExpression">The property expression.</param>
 protected virtual void RaisePropertyChanged <T>(Expression <Func <T> > propertyExpression)
 {
     OnPropertyChanged(RuntimeHelper.GetPropertyName(propertyExpression));
 }