Class SortedObservableCollectionAdaptor<TObject, TKey>
- Namespace
- Dynamic
Data .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
-
ISorted
Observable <TObject, TKey>Collection Adaptor
- Extension Methods
Remarks
Initializes a new instance of the SortedObservableCollectionAdaptor<TObject, TKey> class.
Constructors
SortedObservableCollectionAdaptor()
Initializes a new instance of the SortedObservableCollectionAdaptor<TObject, TKey> class.
SortedObservableCollectionAdaptor(BindingOptions)
Initializes a new instance of the SortedObservableCollectionAdaptor<TObject, TKey> class.
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
intThe number of changes before a Reset event is used.
useReplaceForUpdates
boolUse replace instead of remove / add for updates.
resetOnFirstTimeLoad
boolShould 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
ISortedChange <TObject, TKey>Set The changes.
collection
IObservableCollection <TObject>The collection.