Table of Contents

Class ItemObservingObservableCollection<T>

Namespace
Loehnert.Utility.Collections
Assembly
Loehnert.Utility.dll

This class represents an observable collection that also observes the change of properties of the containing items. When a property of the containing items changes, the ItemPropertyChanged event is fired.

public class ItemObservingObservableCollection<T> : ObservableCollection<T>, IList<T>, ICollection<T>, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged where T : INotifyPropertyChanged

Type Parameters

T

The type of elements in the collection.

Inheritance
ItemObservingObservableCollection<T>
Implements
Inherited Members
Extension Methods

Methods

ClearItems()

Removes all items from the collection.

protected override void ClearItems()

OnCollectionChanged(NotifyCollectionChangedEventArgs)

Raises the CollectionChanged event with the provided arguments.

protected override void OnCollectionChanged(NotifyCollectionChangedEventArgs e)

Parameters

e NotifyCollectionChangedEventArgs

Arguments of the event being raised.

Events

ItemPropertyChanged

Occurs when a property of an item changes.

public event PropertyChangedEventHandler ItemPropertyChanged

Event Type

PropertyChangedEventHandler