Table of Contents

Class ObservableCollectionAdaptor<TObject, TKey>

Namespace
DynamicData.Binding
Assembly
DynamicData.dll

Represents an adaptor which is used to update observable collection from a change set stream.

public class ObservableCollectionAdaptor<TObject, TKey> : IObservableCollectionAdaptor<TObject, TKey> where TObject : notnull where TKey : notnull

Type Parameters

TObject

The type of the object.

TKey

The type of the key.

Inheritance
ObservableCollectionAdaptor<TObject, TKey>
Implements

Remarks

Initializes a new instance of the ObservableCollectionAdaptor<TObject, TKey> class.

Constructors

ObservableCollectionAdaptor(BindingOptions)

Initializes a new instance of the ObservableCollectionAdaptor<TObject, TKey> class.

public ObservableCollectionAdaptor(BindingOptions options)

Parameters

options BindingOptions

The binding options.

ObservableCollectionAdaptor(int, bool, bool)

Represents an adaptor which is used to update observable collection from a change set stream.

public ObservableCollectionAdaptor(int refreshThreshold = 25, bool useReplaceForUpdates = true, bool resetOnFirstTimeLoad = true)

Parameters

refreshThreshold int

The threshold before a reset notification is triggered.

useReplaceForUpdates bool

Use replace instead of remove / add for updates.

resetOnFirstTimeLoad bool

Should a reset be fired for a first time load.This option is due to historic reasons where a reset would be fired for the first time load regardless of the number of changes.

Remarks

Initializes a new instance of the ObservableCollectionAdaptor<TObject, TKey> class.

Methods

Adapt(IChangeSet<TObject, TKey>, IObservableCollection<TObject>)

Maintains the specified collection from the changes.

public void Adapt(IChangeSet<TObject, TKey> changes, IObservableCollection<TObject> collection)

Parameters

changes IChangeSet<TObject, TKey>

The changes.

collection IObservableCollection<TObject>

The collection.