Exemple #1
0
        private void SourceOnPropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            if (e.PropertyName is null)
            {
                BindingValueChanged?.Invoke(this, EventArgs.Empty);
                return;
            }

            // This should just listen to the bindings property
            if (e.PropertyName != PropertyInfo.Name)
            {
                return;
            }

            if (_isCollection)
            {
                // If our binding is a collection binding we need to remove the event
                // and reinitialize the collection bindings
                if (_boundCollection != null)
                {
                    _weakEventManager.RemoveWeakEventListener(_boundCollection);
                }

                AddCollectionBindings();
            }


            BindingValueChanged?.Invoke(this, EventArgs.Empty);
        }
Exemple #2
0
 private void CollectionOnCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     BindingValueChanged?.Invoke(this, EventArgs.Empty);
 }