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) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
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
 NameDescription
Protected propertyItemGenerator Gets the item generator used to generate the wrapper for each item.
Protected propertyItems Returns the collection that the ReadOnlyObservableCollectionAdapterT, TList wraps.
(Inherited from ReadOnlyObservableCollectionAdapterT, TList)
Top
Methods
 NameDescription
Protected methodFinalize
(Overrides ObjectFinalize)
Protected methodOnCollectionChanged Raises the CollectionChanged event.
(Inherited from ReadOnlyObservableCollectionAdapterT, TList)
Protected methodOnPropertyChanged Raises the PropertyChanged event.
(Inherited from ReadOnlyObservableCollectionAdapterT, TList)
Protected methodOnSourceCollectionChanged Called when the source collection has changed.
Top
Events
 NameDescription
Public eventCollectionChanged Occurs when the collection has changed.
Public eventPropertyChanged Occurs when a property has changed.
Top
Extension Methods
 NameDescription
Public Extension MethodSafeCastT Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions)
Top
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