,--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
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
| Name | Description |
|---|---|
TValue | The value type. |
TTarget | The target type. |
TTargetValue | The target value type. |
Parameters
| Name | Type | Description |
|---|---|---|
observedChange | IObservable | The target observable to bind to. |
target | TTarget? | The target object whose property will be set. |
propertyExpression | Expression | 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
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
| Name | Description |
|---|---|
TValue | The value type. |
TTarget | The target type. |
TTargetValue | The target value type. |
Parameters
| Name | Type | Description |
|---|---|---|
observedChange | IObservable | The target observable to bind to. |
target | TTarget? | The target object whose property will be set. |
propertyExpression | Expression | An expression representing the target property to set. |
conversionHint | object? | 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
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
| Name | Description |
|---|---|
TValue | The value type. |
TTarget | The target type. |
TTargetValue | The target value type. |
Parameters
| Name | Type | Description |
|---|---|---|
observedChange | IObservable | The target observable to bind to. |
target | TTarget? | The target object whose property will be set. |
propertyExpression | Expression | An expression representing the target property to set. |
conversionHint | object? | 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.