/// <summary> /// Binds the specified new element. /// </summary> /// <param name="newElement">The new element.</param> private void Bind(EditableListView <T> newElement) { if (newElement != null) { newElement.PropertyChanged += ElementPropertyChanged; newElement.Source.CollectionChanged += DataCollectionChanged; } }
/// <summary> /// Unbinds the specified old element. /// </summary> /// <param name="oldElement">The old element.</param> private void Unbind(EditableListView <T> oldElement) { if (oldElement != null) { oldElement.PropertyChanged -= ElementPropertyChanged; oldElement.Source.CollectionChanged -= DataCollectionChanged; } }