},System.Linq.Expressions.Expression{System.Func{--2,--1}},System.Reactive.Concurrency.IScheduler)} },System.Linq.Expressions.Expression{System.Func{--2,--3}},System.Func{--1,--3},System.Reactive.Concurrency.IScheduler)}
BindExtensions.BindOneWay(TFrom, TTarget, Expression>, Expression>, IScheduler) method¶
Defined in
Type: BindExtensions
Namespace: ReactiveMarbles.PropertyChanged
Assembly: ReactiveMarbles.PropertyChanged.dll
Applies to
netstandard2.0, net462
Overloads¶
- 1.
public static IDisposable BindOneWay<TFrom, TPropertyType, TTarget>(this TFrom fromObject, TTarget targetObject, Expression<Func<TFrom, TPropertyType>> fromProperty, Expression<Func<TTarget, TPropertyType>> toProperty, IScheduler scheduler = null) where TFrom : class, INotifyPropertyChanged - 2.
public static IDisposable BindOneWay<TFrom, TFromProperty, TTarget, TTargetProperty>(this TFrom fromObject, TTarget targetObject, Expression<Func<TFrom, TFromProperty>> fromProperty, Expression<Func<TTarget, TTargetProperty>> toProperty, Func<TFromProperty, TTargetProperty> conversionFunc, IScheduler scheduler = null) where TFrom : class, INotifyPropertyChanged
1. Overload¶
public static IDisposable BindOneWay<TFrom, TPropertyType, TTarget>(this TFrom fromObject, TTarget targetObject, Expression<Func<TFrom, TPropertyType>> fromProperty, Expression<Func<TTarget, TPropertyType>> toProperty, IScheduler scheduler = null) where TFrom : class, INotifyPropertyChanged
Summary: Performs one way binding between a property on the host to a target property.
Type parameters
| Name | Description |
|---|---|
TFrom | The type of property the host is. |
TPropertyType | The property types. |
TTarget | The target property. |
Parameters
| Name | Type | Description |
|---|---|---|
fromObject | TFrom | The object which contains the host property. |
targetObject | TTarget | The object which contains the target property. |
fromProperty | Expression | A expression to the host property. |
toProperty | Expression | A expression to the target property. |
scheduler = null | [IScheduler](# | A scheduler for performing the binding on. Defaults to ImmediateScheduler. |
Returns: IDisposable -- A disposable which when disposed the binding will stop.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | If there is a invalid expression. |
2. Overload¶
public static IDisposable BindOneWay<TFrom, TFromProperty, TTarget, TTargetProperty>(this TFrom fromObject, TTarget targetObject, Expression<Func<TFrom, TFromProperty>> fromProperty, Expression<Func<TTarget, TTargetProperty>> toProperty, Func<TFromProperty, TTargetProperty> conversionFunc, IScheduler scheduler = null) where TFrom : class, INotifyPropertyChanged
Summary: Performs one way binding between a property on the host to a target property.
Type parameters
| Name | Description |
|---|---|
TFrom | The type of property the host is. |
TFromProperty | The property from type. |
TTarget | The target property. |
TTargetProperty | The property to type. |
Parameters
| Name | Type | Description |
|---|---|---|
fromObject | TFrom | The object which contains the host property. |
targetObject | TTarget | The object which contains the target property. |
fromProperty | Expression | A expression to the host property. |
toProperty | Expression | A expression to the target property. |
conversionFunc | Func | A converter which will convert the property from the host to the target property. |
scheduler = null | [IScheduler](# | A scheduler for performing the binding on. Defaults to ImmediateScheduler. |
Returns: IDisposable -- A disposable which when disposed the binding will stop.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | If there is a invalid expression. |