The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

ReactiveCollectionViewSourceExtensions Class

Summary

Extension methods for ReactiveCollectionViewSource<TSource>.
Namespace
ReactiveUI
Base Types
  • object
graph BT Type-->Base0["object"] Type["ReactiveCollectionViewSourceExtensions"] class Type type-node

Syntax

public static class ReactiveCollectionViewSourceExtensions

Methods

Name Value Summary
BindTo<TSource, TCell>(IObservable<INotifyCollectionChanged>, UICollectionView, Action<TCell>?, Func<ReactiveCollectionViewSource<TSource>, IDisposable>?) IDisposable
Extension method that binds an observable of a collection as the source of a UICollectionView. Also registers the given class with an unspecified cellKey (you should probably not specify any other cellKeys).
static
BindTo<TSource, TCell>(IObservable<INotifyCollectionChanged>, UICollectionView, NSString, Action<TCell>?, Func<ReactiveCollectionViewSource<TSource>, IDisposable>?) IDisposable
Extension method that binds an observable of a collection as the source of a UICollectionView.
static
BindTo<TSource, TCell>(IObservable<IReadOnlyList<CollectionViewSectionInformation<TSource, TCell>>>, UICollectionView, Func<ReactiveCollectionViewSource<TSource>, IDisposable>?) IDisposable

Extension method that binds an observable of a list of collection sections as the source of a UICollectionView.

If your IReadOnlyList<T> is also an instance of INotifyCollectionChanged, then this method will silently update the bindings whenever it changes as well. Otherwise, it will just log a message.

static

Extension Methods

Name Value Summary
InvokeViewModelAction<T>(Action<T>) object
This is a thing I lifted from Prism.