Click or drag to resize

TomsToolbox.ObservableCollections Namespace

Classes and functions around observable collections.
Classes
 ClassDescription
Public classObservableCompositeCollection Factory methods for the ObservableCompositeCollectionT
Public classObservableCompositeCollectionT View a set of collections as one continuous list.

Similar to the System.Windows.Data.CompositeCollection, plus:

  • Generic type
  • Transparent separation of the real content and the resulting list
  • Nestable, i.e. composite collections of composite collections
Public classObservableExtensions Extension methods for some observable patterns.
Public classObservableFilteredCollectionT A simple filtered collection implementation.

This collection contains only the items from the source collection passing the filter.

Public classObservableIndexerTKey, TValue A Dictionary like implementation that populates it's content on demand, i.e. calling indexer[key] will never return null.
Public classObservableListAdapterT Adapter to return an IList from an IListT.

Most objects that implement IListT also implement IList, however IListT does not derive from IList, so if you get only an interface and don't know the object behind the IListT, its not safe to directly cast to IList. This object provides a wrapper that handles the transition from IListT to IList, preserving observable events. Use e.g. for ListCollectionView to feed it with an IObservableCollectionT.

Public classObservablePropertyChangeTracker Helper class to create typed change trackers from arbitrary lists.
Public classObservablePropertyChangeTrackerT Tracks PropertyChanged events of all items in an observable collection.
Public classObservableWrappedCollectionTSource, TTarget A read only observable collection of type TTarget where TTarget is a wrapper for type TSource.
Public classReadOnlyObservableCollectionAdapterT, TList Similar to the ReadOnlyObservableCollectionT, except it does not require the items collection to be an ObservableCollectionT but only an IListT that implements also INotifyCollectionChanged.
Interfaces
 InterfaceDescription
Public interfaceIObservableCollectionT Combines IListT, INotifyCollectionChanged and INotifyPropertyChanged into a single interface.