In This Article

IObservableCollection<T> Interface

Provides the base requirements for a collection that raises events when changed.

public interface IObservableCollection<T> where T : class
Type Parameters:
T -

The Type of item in the collection.

Events

ItemAdded

Occurs after an item is added to the collection.

event EventHandler<CollectionChangeEventArgs<T>> ItemAdded

Event Type

EventHandler<CollectionChangeEventArgs<T>>

ItemAdding

Occurs before an item is added to the collection.

event EventHandler<CollectionChangeEventArgs<T>> ItemAdding

Event Type

EventHandler<CollectionChangeEventArgs<T>>

ItemRemoved

Occurs after an item is removed from the collection.

event EventHandler<CollectionChangeEventArgs<T>> ItemRemoved

Event Type

EventHandler<CollectionChangeEventArgs<T>>

ItemRemoving

Occurs before an item is removed from the collection.

event EventHandler<CollectionChangeEventArgs<T>> ItemRemoving

Event Type

EventHandler<CollectionChangeEventArgs<T>>