/// <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)); }
/// <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)); }