public override void OnPropertySet(IPropertyInfo info) { // Don't go further if the new value is equal to the old one. if (info.PropertyValue.Equals(info.CurrentValue)) return; info.ProceedSet(); info.Instance.NotifyPropertyChanged(info.PropertyName); SetParent(info); }
public override void OnPropertySet(IPropertyInfo info) { info.ProceedSet(); if (IsCollectionOfDerivedTypeOfViewModel(info.PropertyType)) { var viewModelCollection = info.PropertyValue as INotifyCollectionChanged; viewModelCollection.CollectionChanged += (e, a) => OnCollectionChanged(info, a); } info.Instance.NotifyPropertyChanged(info.PropertyName); }
public override void OnPropertySet(IPropertyInfo info) { info.ProceedSet(); }