コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public override void OnPropertySet(IPropertyInfo info)
 {
     info.ProceedSet();
 }