},System.Linq.Expressions.Expression{System.Func{--1,--3}},System.IObservable{--4},System.Object)} },System.Linq.Expressions.Expression{System.Func{--1,--3}},System.IObservable{--4},System.Object,ReactiveUI.IBindingTypeConverter)} },System.Linq.Expressions.Expression{System.Func{--1,--3}},System.IObservable{--4},System.Object,ReactiveUI.IBindingTypeConverter,ReactiveUI.IBindingTypeConverter)} },System.Linq.Expressions.Expression{System.Func{--1,--3}},System.IObservable{--4},System.Object,ReactiveUI.IBindingTypeConverter,ReactiveUI.IBindingTypeConverter,ReactiveUI.TriggerUpdate)} },System.Linq.Expressions.Expression{System.Func{--1,--3}},System.IObservable{--4},System.Func{--2,--3},System.Func{--3,--2})} },System.Linq.Expressions.Expression{System.Func{--1,--3}},System.IObservable{--4},System.Func{--2,--3},System.Func{--3,--2},ReactiveUI.TriggerUpdate)}
IPropertyBinderImplementation.Bind(TViewModel?, TView, Expression>, Expression>, IObservable?, object?) method¶
Defined in
Type: IPropertyBinderImplementation
Namespace: ReactiveUI
Assembly: ReactiveUI.Core.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.
IReactiveBinding<TView, (object? View, bool IsViewModel)> Bind<TViewModel, TView, TViewModelPropertyType, TViewPropertyType, TDontCare>(TViewModel? viewModel, TView view, Expression<Func<TViewModel, TViewModelPropertyType?>> viewModelProperty, Expression<Func<TView, TViewPropertyType>> viewProperty, IObservable<TDontCare>? signalViewUpdate, object? conversionHint) where TViewModel : class where TView : class, IViewFor - 2.
IReactiveBinding<TView, (object? View, bool IsViewModel)> Bind<TViewModel, TView, TViewModelPropertyType, TViewPropertyType, TDontCare>(TViewModel? viewModel, TView view, Expression<Func<TViewModel, TViewModelPropertyType?>> viewModelProperty, Expression<Func<TView, TViewPropertyType>> viewProperty, IObservable<TDontCare>? signalViewUpdate, object? conversionHint, IBindingTypeConverter? viewModelToViewConverterOverride) where TViewModel : class where TView : class, IViewFor - 3.
IReactiveBinding<TView, (object? View, bool IsViewModel)> Bind<TViewModel, TView, TViewModelPropertyType, TViewPropertyType, TDontCare>(TViewModel? viewModel, TView view, Expression<Func<TViewModel, TViewModelPropertyType?>> viewModelProperty, Expression<Func<TView, TViewPropertyType>> viewProperty, IObservable<TDontCare>? signalViewUpdate, object? conversionHint, IBindingTypeConverter? viewModelToViewConverterOverride, IBindingTypeConverter? viewToViewModelConverterOverride) where TViewModel : class where TView : class, IViewFor - 4.
IReactiveBinding<TView, (object? View, bool IsViewModel)> Bind<TViewModel, TView, TViewModelPropertyType, TViewPropertyType, TDontCare>(TViewModel? viewModel, TView view, Expression<Func<TViewModel, TViewModelPropertyType?>> viewModelProperty, Expression<Func<TView, TViewPropertyType>> viewProperty, IObservable<TDontCare>? signalViewUpdate, object? conversionHint, IBindingTypeConverter? viewModelToViewConverterOverride, IBindingTypeConverter? viewToViewModelConverterOverride, TriggerUpdate triggerUpdate) where TViewModel : class where TView : class, IViewFor - 5.
IReactiveBinding<TView, (object? View, bool IsViewModel)> Bind<TViewModel, TView, TViewModelPropertyType, TViewPropertyType, TDontCare>(TViewModel? viewModel, TView view, Expression<Func<TViewModel, TViewModelPropertyType?>> viewModelProperty, Expression<Func<TView, TViewPropertyType>> viewProperty, IObservable<TDontCare>? signalViewUpdate, Func<TViewModelPropertyType?, TViewPropertyType> viewModelToViewConverter, Func<TViewPropertyType, TViewModelPropertyType?> viewToViewModelConverter) where TViewModel : class where TView : class, IViewFor - 6.
IReactiveBinding<TView, (object? View, bool IsViewModel)> Bind<TViewModel, TView, TViewModelPropertyType, TViewPropertyType, TDontCare>(TViewModel? viewModel, TView view, Expression<Func<TViewModel, TViewModelPropertyType?>> viewModelProperty, Expression<Func<TView, TViewPropertyType>> viewProperty, IObservable<TDontCare>? signalViewUpdate, Func<TViewModelPropertyType?, TViewPropertyType> viewModelToViewConverter, Func<TViewPropertyType, TViewModelPropertyType?> viewToViewModelConverter, TriggerUpdate triggerUpdate) where TViewModel : class where TView : class, IViewFor
1. Overload¶
IReactiveBinding<TView, (object? View, bool IsViewModel)> Bind<TViewModel, TView, TViewModelPropertyType, TViewPropertyType, TDontCare>(TViewModel? viewModel, TView view, Expression<Func<TViewModel, TViewModelPropertyType?>> viewModelProperty, Expression<Func<TView, TViewPropertyType>> viewProperty, IObservable<TDontCare>? signalViewUpdate, object? conversionHint) where TViewModel : class where TView : class, IViewFor
Summary: Creates a two-way binding between a view model and a view using a conversion hint and no converter overrides.
Type parameters
| Name | Description |
|---|---|
TViewModel | The type of the view model that is bound. |
TView | The type of the view being bound. |
TViewModelPropertyType | The type of the property bound on the view model. |
TViewPropertyType | The type of the property bound on the view. |
TDontCare | A dummy type used only to signal view updates. |
Parameters
| Name | Type | Description |
|---|---|---|
viewModel | TViewModel? | The instance of the view model object to be bound. |
view | TView | The instance of the view object to be bound. |
viewModelProperty | Expression | An expression representing the property to be bound on the view model. |
viewProperty | Expression | An expression representing the property to be bound on the view. |
signalViewUpdate | IObservable | An observable that signals when the view property has changed. |
conversionHint | object? | An object that can provide a hint for the converter. |
Returns: IReactiveBinding
2. Overload¶
IReactiveBinding<TView, (object? View, bool IsViewModel)> Bind<TViewModel, TView, TViewModelPropertyType, TViewPropertyType, TDontCare>(TViewModel? viewModel, TView view, Expression<Func<TViewModel, TViewModelPropertyType?>> viewModelProperty, Expression<Func<TView, TViewPropertyType>> viewProperty, IObservable<TDontCare>? signalViewUpdate, object? conversionHint, IBindingTypeConverter? viewModelToViewConverterOverride) where TViewModel : class where TView : class, IViewFor
Summary: Creates a two-way binding between a view model and a view using a conversion hint and an optional vm-to-view converter override.
Type parameters
| Name | Description |
|---|---|
TViewModel | The type of the view model that is bound. |
TView | The type of the view being bound. |
TViewModelPropertyType | The type of the property bound on the view model. |
TViewPropertyType | The type of the property bound on the view. |
TDontCare | A dummy type used only to signal view updates. |
Parameters
| Name | Type | Description |
|---|---|---|
viewModel | TViewModel? | The instance of the view model object to be bound. |
view | TView | The instance of the view object to be bound. |
viewModelProperty | Expression | An expression representing the property to be bound on the view model. |
viewProperty | Expression | An expression representing the property to be bound on the view. |
signalViewUpdate | IObservable | An observable that signals when the view property has changed. |
conversionHint | object? | An object that can provide a hint for the converter. |
viewModelToViewConverterOverride | [IBindingTypeConverter?](# | An optional converter to use when converting from view model to view property. |
Returns: IReactiveBinding
3. Overload¶
IReactiveBinding<TView, (object? View, bool IsViewModel)> Bind<TViewModel, TView, TViewModelPropertyType, TViewPropertyType, TDontCare>(TViewModel? viewModel, TView view, Expression<Func<TViewModel, TViewModelPropertyType?>> viewModelProperty, Expression<Func<TView, TViewPropertyType>> viewProperty, IObservable<TDontCare>? signalViewUpdate, object? conversionHint, IBindingTypeConverter? viewModelToViewConverterOverride, IBindingTypeConverter? viewToViewModelConverterOverride) where TViewModel : class where TView : class, IViewFor
Summary: Creates a two-way binding between a view model and a view using a conversion hint and converter overrides.
Type parameters
| Name | Description |
|---|---|
TViewModel | The type of the view model that is bound. |
TView | The type of the view being bound. |
TViewModelPropertyType | The type of the property bound on the view model. |
TViewPropertyType | The type of the property bound on the view. |
TDontCare | A dummy type used only to signal view updates. |
Parameters
| Name | Type | Description |
|---|---|---|
viewModel | TViewModel? | The instance of the view model object to be bound. |
view | TView | The instance of the view object to be bound. |
viewModelProperty | Expression | An expression representing the property to be bound on the view model. |
viewProperty | Expression | An expression representing the property to be bound on the view. |
signalViewUpdate | IObservable | An observable that signals when the view property has changed. |
conversionHint | object? | An object that can provide a hint for the converter. |
viewModelToViewConverterOverride | [IBindingTypeConverter?](# | An optional converter to use when converting from view model to view property. |
viewToViewModelConverterOverride | [IBindingTypeConverter?](# | An optional converter to use when converting from view to view model property. |
Returns: IReactiveBinding
4. Overload¶
IReactiveBinding<TView, (object? View, bool IsViewModel)> Bind<TViewModel, TView, TViewModelPropertyType, TViewPropertyType, TDontCare>(TViewModel? viewModel, TView view, Expression<Func<TViewModel, TViewModelPropertyType?>> viewModelProperty, Expression<Func<TView, TViewPropertyType>> viewProperty, IObservable<TDontCare>? signalViewUpdate, object? conversionHint, IBindingTypeConverter? viewModelToViewConverterOverride, IBindingTypeConverter? viewToViewModelConverterOverride, TriggerUpdate triggerUpdate) where TViewModel : class where TView : class, IViewFor
Summary: Creates a two-way binding between a view model and a view with full control over converter overrides and trigger direction.
Type parameters
| Name | Description |
|---|---|
TViewModel | The type of the view model that is bound. |
TView | The type of the view being bound. |
TViewModelPropertyType | The type of the property bound on the view model. |
TViewPropertyType | The type of the property bound on the view. |
TDontCare | A dummy type used only to signal view updates. |
Parameters
| Name | Type | Description |
|---|---|---|
viewModel | TViewModel? | The instance of the view model object to be bound. |
view | TView | The instance of the view object to be bound. |
viewModelProperty | Expression | An expression representing the property to be bound on the view model. |
viewProperty | Expression | An expression representing the property to be bound on the view. |
signalViewUpdate | IObservable | An observable that signals when the view property has changed. |
conversionHint | object? | An object that can provide a hint for the converter. |
viewModelToViewConverterOverride | [IBindingTypeConverter?](# | An optional converter to use when converting from view model to view property. |
viewToViewModelConverterOverride | [IBindingTypeConverter?](# | An optional converter to use when converting from view to view model property. |
triggerUpdate | [TriggerUpdate](# | The trigger update direction. |
Returns: IReactiveBinding
5. Overload¶
IReactiveBinding<TView, (object? View, bool IsViewModel)> Bind<TViewModel, TView, TViewModelPropertyType, TViewPropertyType, TDontCare>(TViewModel? viewModel, TView view, Expression<Func<TViewModel, TViewModelPropertyType?>> viewModelProperty, Expression<Func<TView, TViewPropertyType>> viewProperty, IObservable<TDontCare>? signalViewUpdate, Func<TViewModelPropertyType?, TViewPropertyType> viewModelToViewConverter, Func<TViewPropertyType, TViewModelPropertyType?> viewToViewModelConverter) where TViewModel : class where TView : class, IViewFor
Summary: Creates a two-way binding between a view model and a view using explicit converter delegates with default trigger direction.
Type parameters
| Name | Description |
|---|---|
TViewModel | The type of the view model that is bound. |
TView | The type of the view being bound. |
TViewModelPropertyType | The type of the property bound on the view model. |
TViewPropertyType | The type of the property bound on the view. |
TDontCare | A dummy type used only to signal view updates. |
Parameters
| Name | Type | Description |
|---|---|---|
viewModel | TViewModel? | The instance of the view model object to be bound. |
view | TView | The instance of the view object to be bound. |
viewModelProperty | Expression | An expression representing the property to be bound on the view model. |
viewProperty | Expression | An expression representing the property to be bound on the view. |
signalViewUpdate | IObservable | An observable that signals when the view property has changed. |
viewModelToViewConverter | Func | Delegate to convert the view model property value to the view property type. |
viewToViewModelConverter | Func | Delegate to convert the view property value to the view model property type. |
Returns: IReactiveBinding
6. Overload¶
IReactiveBinding<TView, (object? View, bool IsViewModel)> Bind<TViewModel, TView, TViewModelPropertyType, TViewPropertyType, TDontCare>(TViewModel? viewModel, TView view, Expression<Func<TViewModel, TViewModelPropertyType?>> viewModelProperty, Expression<Func<TView, TViewPropertyType>> viewProperty, IObservable<TDontCare>? signalViewUpdate, Func<TViewModelPropertyType?, TViewPropertyType> viewModelToViewConverter, Func<TViewPropertyType, TViewModelPropertyType?> viewToViewModelConverter, TriggerUpdate triggerUpdate) where TViewModel : class where TView : class, IViewFor
Summary: Creates a two-way binding between a view model and a view using explicit converter delegates and a specified trigger direction.
Type parameters
| Name | Description |
|---|---|
TViewModel | The type of the view model that is bound. |
TView | The type of the view being bound. |
TViewModelPropertyType | The type of the property bound on the view model. |
TViewPropertyType | The type of the property bound on the view. |
TDontCare | A dummy type used only to signal view updates. |
Parameters
| Name | Type | Description |
|---|---|---|
viewModel | TViewModel? | The instance of the view model object to be bound. |
view | TView | The instance of the view object to be bound. |
viewModelProperty | Expression | An expression representing the property to be bound on the view model. |
viewProperty | Expression | An expression representing the property to be bound on the view. |
signalViewUpdate | IObservable | An observable that signals when the view property has changed. |
viewModelToViewConverter | Func | Delegate to convert the view model property value to the view property type. |
viewToViewModelConverter | Func | Delegate to convert the view property value to the view model property type. |
triggerUpdate | [TriggerUpdate](# | The trigger update direction. |
Returns: IReactiveBinding