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

ObservedChange<TSender, TValue> Class

Summary

A data-only version of IObservedChange.
Namespace
ReactiveUI
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IObservedChange<TSender, TValue>"] Type["ObservedChange<TSender, TValue>"] class Type type-node

Syntax

public class ObservedChange<TSender, TValue> : IObservedChange<TSender, TValue>

Type Parameters

Name Description
TSender The sender type.
TValue The value type.

Constructors

Name Summary
ObservedChange(TSender, Expression?, TValue) Initializes a new instance of the ObservedChange<TSender, TValue> class.

Properties

Name Value Summary
Expression Expression?
Gets the expression of the member that has changed on Sender.
Sender TSender
Gets the object that has raised the change.
Value TValue
Gets the value of the property that has changed. IMPORTANT NOTE: This property is often not set for performance reasons, unless you have explicitly requested an Observable for a property via a method such as ObservableForProperty. To retrieve the value for the property, use the GetValue() extension method.

Extension Methods

Name Value Summary
BindCommand<ObservedChange<TSender, TValue>, TViewModel, TProp, TControl, TParam>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<ObservedChange<TSender, TValue>, TControl>>, Expression<Func<TViewModel, TParam?>>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindCommand<ObservedChange<TSender, TValue>, TViewModel, TProp, TControl, TParam>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<ObservedChange<TSender, TValue>, TControl>>, IObservable<TParam?>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindCommand<ObservedChange<TSender, TValue>, TViewModel, TProp, TControl>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<ObservedChange<TSender, TValue>, TControl>>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindValidation<ObservedChange<TSender, TValue>, TViewModel, TViewModelProperty, TViewProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty>>, Expression<Func<ObservedChange<TSender, TValue>, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds the specified ViewModel property validation to the View property.
BindValidation<ObservedChange<TSender, TValue>, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<ObservedChange<TSender, TValue>, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<ObservedChange<TSender, TValue>, TViewModel, TViewProperty>(TViewModel?, Expression<Func<ObservedChange<TSender, TValue>, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds the overall validation of a ViewModel to a specified View property.
BindValidation<ObservedChange<TSender, TValue>, TViewModel, TViewProperty>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper?>>, Expression<Func<ObservedChange<TSender, TValue>, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds a ValidationHelper from a ViewModel to a specified View property.
BindValidation<ObservedChange<TSender, TValue>, TViewModel>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<ObservedChange<TSender, TValue>, TViewModel>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidationEx<ObservedChange<TSender, TValue>, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidationEx<ObservedChange<TSender, TValue>, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
GetPropertyName<TSender, TValue>() string
Returns the name of a property which has been changed.
GetValue<TSender, TValue>() TValue
Returns the current value of a property given a notification that it has changed.
GetValueOrDefault<TSender, TValue>() TValue?
Returns the current value of a property given a notification that it has changed.
InvokeViewModelAction<T>(Action<T>) object
This is a thing I lifted from Prism.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<T1>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T2>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T3>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T4>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T5>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T6>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T7>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T8>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T9>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T10>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T11>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T12>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, T11?, T12?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<T1>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T2>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T3>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T4>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T5>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T6>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T7>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T8>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T9>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T10>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T11>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, T11?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<T1>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T2>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T3>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T4>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T5>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T6>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T7>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T8>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T9>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T10>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<T1>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T2>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T3>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T4>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T5>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T6>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T7>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T8>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T9>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet, T1, T2, T3, T4, T5, T6, T7, T8>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<T1>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T2>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T3>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T4>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T5>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T6>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T7>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T8>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet, T1, T2, T3, T4, T5, T6, T7>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<T1>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T2>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T3>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T4>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T5>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T6>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T7>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet, T1, T2, T3, T4, T5, T6>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<T1>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T2>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T3>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T4>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T5>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T6>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet, T1, T2, T3, T4, T5>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<T1>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T2>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T3>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T4>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T5>?>>, Func<T1?, T2?, T3?, T4?, T5?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet, T1, T2, T3, T4>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<T1>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T2>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T3>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T4>?>>, Func<T1?, T2?, T3?, T4?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet, T1, T2, T3>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<T1>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T2>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T3>?>>, Func<T1?, T2?, T3?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet, T1, T2>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<T1>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<T2>?>>, Func<T1?, T2?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>) IObservable<TRet>
Observe a observable which is set to a property, and automatically subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservedChange<TSender, TValue>, TRet>(Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>, Expression<Func<ObservedChange<TSender, TValue>, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
With<ObservedChange<TSender, TValue>, TKey, TField>(Dictionary<TKey, TField>, IDictionary<TKey, TField>) TBuilder
Adds the specified dictionary to the provided dictionary.