Skip to content

,--1,System.Linq.Expressions.Expression{System.Func{--1,--2}})} ,--1,System.Linq.Expressions.Expression{System.Func{--1,--2}},System.Object)} ,--1,System.Linq.Expressions.Expression{System.Func{--1,--2}},System.Object,ReactiveUI.IBindingTypeConverter)}

PropertyBinderImplementation.BindTo(IObservable, TTarget?, Expression>) method

Defined in

Type: PropertyBinderImplementation Namespace: ReactiveUI.Reactive Assembly: ReactiveUI.Reactive.dll

Applies to

net10.0, net10.0-maccatalyst26.0, net10.0-desktop1.0, net10.0-browserwasm1.0, net10.0-tvos26.0, net10.0-windows10.0.19041, net10.0-macos26.0, net10.0-ios26.0, net10.0-android36.0, net9.0, net9.0-tvos18.0, net9.0-macos15.0, net9.0-maccatalyst18.0, net9.0-windows10.0.19041, net9.0-ios18.0, net9.0-desktop1.0, net8.0, net8.0-windows10.0.19041, net8.0-ios18.0, net8.0-maccatalyst18.0, net8.0-macos15.0, net8.0-tvos18.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.5, netstandard2.1, net481, net462, net471

Overloads

  • 1. public IDisposable BindTo<TValue, TTarget, TTargetValue>(IObservable<TValue> observedChange, TTarget? target, Expression<Func<TTarget, TTargetValue?>> propertyExpression) where TTarget : class
  • 2. public IDisposable BindTo<TValue, TTarget, TTargetValue>(IObservable<TValue> observedChange, TTarget? target, Expression<Func<TTarget, TTargetValue?>> propertyExpression, object? conversionHint) where TTarget : class
  • 3. public IDisposable BindTo<TValue, TTarget, TTargetValue>(IObservable<TValue> observedChange, TTarget? target, Expression<Func<TTarget, TTargetValue?>> propertyExpression, object? conversionHint, IBindingTypeConverter? viewModelToViewConverterOverride) where TTarget : class

1. Overload

public IDisposable BindTo<TValue, TTarget, TTargetValue>(IObservable<TValue> observedChange, TTarget? target, Expression<Func<TTarget, TTargetValue?>> propertyExpression) where TTarget : class

View source

Inherited documentation

These docs were inherited from IPropertyBinderImplementation. The member doesn't override them on this type.

Summary: Binds an observable stream to a target property using default converters and conversion hint.

Type parameters

NameDescription
TValueThe value type.
TTargetThe target type.
TTargetValueThe target value type.

Parameters

NameTypeDescription
observedChangeIObservableThe target observable to bind to.
targetTTarget?The target object whose property will be set.
propertyExpressionExpression>An expression representing the target property to set.

Returns: IDisposable -- An object that when disposed, disconnects the binding.

2. Overload

public IDisposable BindTo<TValue, TTarget, TTargetValue>(IObservable<TValue> observedChange, TTarget? target, Expression<Func<TTarget, TTargetValue?>> propertyExpression, object? conversionHint) where TTarget : class

View source

Inherited documentation

These docs were inherited from IPropertyBinderImplementation. The member doesn't override them on this type.

Summary: Binds an observable stream to a target property using only a conversion hint.

Type parameters

NameDescription
TValueThe value type.
TTargetThe target type.
TTargetValueThe target value type.

Parameters

NameTypeDescription
observedChangeIObservableThe target observable to bind to.
targetTTarget?The target object whose property will be set.
propertyExpressionExpression>An expression representing the target property to set.
conversionHintobject?An object that can provide a hint for the converter.

Returns: IDisposable -- An object that when disposed, disconnects the binding.

3. Overload

public IDisposable BindTo<TValue, TTarget, TTargetValue>(IObservable<TValue> observedChange, TTarget? target, Expression<Func<TTarget, TTargetValue?>> propertyExpression, object? conversionHint, IBindingTypeConverter? viewModelToViewConverterOverride) where TTarget : class

View source

Inherited documentation

These docs were inherited from IPropertyBinderImplementation. The member doesn't override them on this type.

Summary: Binds an observable stream to a target property with an optional converter override.

Type parameters

NameDescription
TValueThe value type.
TTargetThe target type.
TTargetValueThe target value type.

Parameters

NameTypeDescription
observedChangeIObservableThe target observable to bind to.
targetTTarget?The target object whose property will be set.
propertyExpressionExpression>An expression representing the target property to set.
conversionHintobject?An object that can provide a hint for the converter.
viewModelToViewConverterOverride[IBindingTypeConverter?](#An optional converter to use when converting from the observable value to the target property type.

Returns: IDisposable -- An object that when disposed, disconnects the binding.