WhenAnyMixin.

WhenAnyDynamic<TSender, TRet>(TSender, Expression, Func<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 This, Expression property1, Func<IObservedChange<TSender, object>, TRet> selector)

Type Parameters

Name Description
TSender
TRet

Parameters

Name Type Description
This TSender
property1 Expression
selector Func<IObservedChange<TSender, object>, TRet>

Return Value

Type Description
IObservable<TRet>