WhenAnyMixin.

WhenAnyValue<TSender, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(TSender, Expression<Func<TSender, T1>>, Expression<Func<TSender, T2>>, Expression<Func<TSender, T3>>, Expression<Func<TSender, T4>>, Expression<Func<TSender, T5>>, Expression<Func<TSender, T6>>, Expression<Func<TSender, T7>>, Expression<Func<TSender, T8>>, Expression<Func<TSender, T9>>, Expression<Func<TSender, T10>>, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TRet>) Method

Summary

WhenAnyValue allows you to observe whenever the value of 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> WhenAnyValue<TSender, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(this TSender This, Expression<Func<TSender, T1>> property1, Expression<Func<TSender, T2>> property2, Expression<Func<TSender, T3>> property3, Expression<Func<TSender, T4>> property4, Expression<Func<TSender, T5>> property5, Expression<Func<TSender, T6>> property6, Expression<Func<TSender, T7>> property7, Expression<Func<TSender, T8>> property8, Expression<Func<TSender, T9>> property9, Expression<Func<TSender, T10>> property10, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TRet> selector)

Type Parameters

Name Description
TSender
TRet
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10

Parameters

Name Type Description
This TSender
property1 Expression<Func<TSender, T1>>
property2 Expression<Func<TSender, T2>>
property3 Expression<Func<TSender, T3>>
property4 Expression<Func<TSender, T4>>
property5 Expression<Func<TSender, T5>>
property6 Expression<Func<TSender, T6>>
property7 Expression<Func<TSender, T7>>
property8 Expression<Func<TSender, T8>>
property9 Expression<Func<TSender, T9>>
property10 Expression<Func<TSender, T10>>
selector Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TRet>

Return Value

Type Description
IObservable<TRet>