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

WhenAnyMixin.

WhenAnyDynamic<TSender, TRet>(TSender, Expression?, Expression?, Expression?, Expression?, Expression?, Expression?, Expression?, Expression?, Expression?, Func<IObservedChange<TSender, object>, IObservedChange<TSender, object>, IObservedChange<TSender, object>, IObservedChange<TSender, object>, IObservedChange<TSender, object>, IObservedChange<TSender, object>, IObservedChange<TSender, object>, IObservedChange<TSender, object>, IObservedChange<TSender, object>, TRet>) Method

Summary

WhenAny allows you to observe whenever one or more properties on an object have changed, providing an initial value when the Observable is set up, unlike ObservableForProperty(). Use this method in constructors to set up bindings between properties that also need an initial setup.
Namespace
ReactiveUI
Containing Type
WhenAnyMixin

Syntax

public static IObservable<TRet> WhenAnyDynamic<TSender, TRet>(this TSender sender, Expression? property1, Expression? property2, Expression? property3, Expression? property4, Expression? property5, Expression? property6, Expression? property7, Expression? property8, Expression? property9, Func<IObservedChange<TSender, object>, IObservedChange<TSender, object>, IObservedChange<TSender, object>, IObservedChange<TSender, object>, IObservedChange<TSender, object>, IObservedChange<TSender, object>, IObservedChange<TSender, object>, IObservedChange<TSender, object>, IObservedChange<TSender, object>, TRet> selector)

Type Parameters

Name Description
TSender
TRet

Parameters

Name Type Description
sender TSender The object where the property chain starts.
property1 Expression? The 1 property chain to reference. This will be a expression pointing to a end property or field.
property2 Expression? The 2 property chain to reference. This will be a expression pointing to a end property or field.
property3 Expression? The 3 property chain to reference. This will be a expression pointing to a end property or field.
property4 Expression? The 4 property chain to reference. This will be a expression pointing to a end property or field.
property5 Expression? The 5 property chain to reference. This will be a expression pointing to a end property or field.
property6 Expression? The 6 property chain to reference. This will be a expression pointing to a end property or field.
property7 Expression? The 7 property chain to reference. This will be a expression pointing to a end property or field.
property8 Expression? The 8 property chain to reference. This will be a expression pointing to a end property or field.
property9 Expression? The 9 property chain to reference. This will be a expression pointing to a end property or field.
selector Func<IObservedChange<TSender, object>, IObservedChange<TSender, object>, IObservedChange<TSender, object>, IObservedChange<TSender, object>, IObservedChange<TSender, object>, IObservedChange<TSender, object>, IObservedChange<TSender, object>, IObservedChange<TSender, object>, IObservedChange<TSender, object>, TRet> The selector which will determine the final value from the properties.

Return Value

Type Description
IObservable<TRet>