Table of Contents

Class SortedObservableCollectionAdaptor<TObject, TKey>

Namespace
DynamicData.Binding
Assembly
DynamicData.dll

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

public class SortedObservableCollectionAdaptor<TObject, TKey> : ISortedObservableCollectionAdaptor<TObject, TKey> where TObject : notnull where TKey : notnull

Type Parameters

TObject

The type of the object.

TKey

The type of the key.

Inheritance
SortedObservableCollectionAdaptor<TObject, TKey>
Implements

Remarks

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

Constructors

SortedObservableCollectionAdaptor()

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

public SortedObservableCollectionAdaptor()

SortedObservableCollectionAdaptor(BindingOptions)

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

public SortedObservableCollectionAdaptor(BindingOptions options)

Parameters

options BindingOptions

The binding options.

SortedObservableCollectionAdaptor(int, bool, bool)

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

public SortedObservableCollectionAdaptor(int refreshThreshold, bool useReplaceForUpdates = true, bool resetOnFirstTimeLoad = true)

Parameters

refreshThreshold int

The number of changes before a Reset event is used.

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 SortedObservableCollectionAdaptor<TObject, TKey> class.

Methods

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

Maintains the specified collection from the changes.

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

Parameters

changes ISortedChangeSet<TObject, TKey>

The changes.

collection IObservableCollection<TObject>

The collection.