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

ObservableCollectionAdaptor<TObject, TKey> Class

Summary

Represents an adaptor which is used to update observable collection from a change set stream.
Namespace
DynamicData.Binding
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IObservableCollectionAdaptor<TObject, TKey>"] Type["ObservableCollectionAdaptor<TObject, TKey>"] class Type type-node

Syntax

[SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1402:File may only contain a single type", Justification = "Same class name, only generic difference.")]
public class ObservableCollectionAdaptor<TObject, TKey> : 
    IObservableCollectionAdaptor<TObject, TKey>
    where TKey : notnull

Attributes

Type Description
SuppressMessageAttribute

Type Parameters

Name Description
TObject The type of the object.
TKey The type of the key.

Constructors

Name Summary
ObservableCollectionAdaptor(int) Initializes a new instance of the ObservableCollectionAdaptor<TObject, TKey> class.

Methods

Name Value Summary
Adapt(IChangeSet<TObject, TKey>, IObservableCollection<TObject>) void
Maintains the specified collection from the changes.

Extension Methods

Name Value Summary
BindCommand<ObservableCollectionAdaptor<TObject, TKey>, TViewModel, TProp, TControl, TParam>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<ObservableCollectionAdaptor<TObject, TKey>, TControl>>, Expression<Func<TViewModel, TParam?>>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindCommand<ObservableCollectionAdaptor<TObject, TKey>, TViewModel, TProp, TControl, TParam>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<ObservableCollectionAdaptor<TObject, TKey>, TControl>>, IObservable<TParam?>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindCommand<ObservableCollectionAdaptor<TObject, TKey>, TViewModel, TProp, TControl>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<ObservableCollectionAdaptor<TObject, TKey>, TControl>>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindValidation<ObservableCollectionAdaptor<TObject, TKey>, TViewModel, TViewModelProperty, TViewProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty>>, Expression<Func<ObservableCollectionAdaptor<TObject, TKey>, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds the specified ViewModel property validation to the View property.
BindValidation<ObservableCollectionAdaptor<TObject, TKey>, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<ObservableCollectionAdaptor<TObject, TKey>, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<ObservableCollectionAdaptor<TObject, TKey>, TViewModel, TViewProperty>(TViewModel?, Expression<Func<ObservableCollectionAdaptor<TObject, TKey>, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds the overall validation of a ViewModel to a specified View property.
BindValidation<ObservableCollectionAdaptor<TObject, TKey>, TViewModel, TViewProperty>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper>>, Expression<Func<ObservableCollectionAdaptor<TObject, TKey>, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds a ValidationHelper from a ViewModel to a specified View property.
BindValidation<ObservableCollectionAdaptor<TObject, TKey>, TViewModel>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<ObservableCollectionAdaptor<TObject, TKey>, TViewModel>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidationEx<ObservableCollectionAdaptor<TObject, TKey>, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidationEx<ObservableCollectionAdaptor<TObject, TKey>, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
InvokeViewModelAction<T>(Action<T>) object
This is a thing I lifted from Prism.
With<ObservableCollectionAdaptor<TObject, TKey>, TKey, TField>(Dictionary<TKey, TField>, IDictionary<TKey, TField>) TBuilder
Adds the specified dictionary to the provided dictionary.