Click or drag to resize

ObservableWrappedCollectionTSource, TTarget Class

A read only observable collection of type TTarget where TTarget is a wrapper for type TSource.
Inheritance Hierarchy
SystemObject
  System.Collections.ObjectModelReadOnlyCollectionTTarget
    TomsToolbox.ObservableCollectionsReadOnlyObservableCollectionAdapterTTarget, ObservableCollectionTTarget
      TomsToolbox.ObservableCollectionsObservableWrappedCollectionTSource, TTarget

Namespace:  TomsToolbox.ObservableCollections
Assembly:  TomsToolbox.ObservableCollections (in TomsToolbox.ObservableCollections.dll)
Syntax
public class ObservableWrappedCollection<TSource, TTarget> : ReadOnlyObservableCollectionAdapter<TTarget, ObservableCollection<TTarget>>

Type Parameters

TSource
The type of elements in the source collection.
TTarget
The type of elements in the wrapped collection.

The ObservableWrappedCollectionTSource, TTarget type exposes the following members.

Constructors
  NameDescription
Public methodObservableWrappedCollectionTSource, TTarget
Initializes a new instance of the ObservableWrappedCollectionTSource, TTarget class.
Top
Properties
Methods
Events
  NameDescription
Public eventCollectionChanged
Occurs when the collection has changed.
Public eventPropertyChanged
Occurs when a property has changed.
Top
Extension Methods
Remarks
This collection does not hold a reference to the source collection. To keep the source collection alive, the object generating the ObservableWrappedCollectionTSource, TTarget must hold a reference to the source collection.
See Also