Class IObservableListEx
- Namespace
- Dynamic
Data .Binding
- Assembly
- DynamicData.dll
Extensions to convert a dynamic stream out to an IObservableList<T>.
- Inheritance
-
IObservable
List Ex
Methods
BindToObservableList<TObject>(IObservable<IChangeSet<TObject>>, out IObservableList<TObject>)
Binds the results to the specified IObservableList<T>. Unlike binding to a ReadOnlyObservableCollection<T> which loses the ability to refresh items, binding to an IObservableList<T>. allows for refresh changes to be preserved and keeps the list read-only.
public static IObservable<IChangeSet<TObject>> BindToObservableList<TObject>(this IObservable<IChangeSet<TObject>> source, out IObservableList<TObject> observableList) where TObject : notnull
Parameters
source
IObservable<IChangeSet <TObject>>The source.
observableList
IObservableList <TObject>The output observable list.
Returns
- IObservable<IChange
Set <TObject>> The
source
change set for continued chaining.
Type Parameters
TObject
The type of the object.
Exceptions
- Argument
Null Exception source.
BindToObservableList<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>, out IObservableList<TObject>)
Binds the results to the specified IObservableList<T>. Unlike binding to a ReadOnlyObservableCollection<T> which loses the ability to refresh items, binding to an IObservableList<T>. allows for refresh changes to be preserved and keeps the list read-only.
public static IObservable<IChangeSet<TObject, TKey>> BindToObservableList<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, out IObservableList<TObject> observableList) where TObject : notnull where TKey : notnull
Parameters
source
IObservable<IChangeSet <TObject, TKey>>The source.
observableList
IObservableList <TObject>The observable list which is the output.
Returns
- IObservable<IChange
Set <TObject, TKey>> The
source
change set for continued chaining.
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
Exceptions
- Argument
Null Exception source.
BindToObservableList<TObject, TKey>(IObservable<ISortedChangeSet<TObject, TKey>>, out IObservableList<TObject>)
Binds the results to the specified IObservableList<T>. Unlike binding to a ReadOnlyObservableCollection<T> which loses the ability to refresh items, binding to an IObservableList<T>. allows for refresh changes to be preserved and keeps the list read-only.
public static IObservable<ISortedChangeSet<TObject, TKey>> BindToObservableList<TObject, TKey>(this IObservable<ISortedChangeSet<TObject, TKey>> source, out IObservableList<TObject> observableList) where TObject : notnull where TKey : notnull
Parameters
source
IObservable<ISortedChange <TObject, TKey>>Set The source.
observableList
IObservableList <TObject>The output observable list.
Returns
- IObservable<ISorted
Change <TObject, TKey>>Set The
source
change set for continued chaining.
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
Exceptions
- Argument
Null Exception source.