Skip to content

},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)}

PropertyBinderImplementation.Bind(TViewModel?, TView, Expression>, Expression>, IObservable?, object?) 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 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. public 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. public 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. public 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. public 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. public 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

public 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

View source

Inherited documentation

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

Summary: Creates a two-way binding between a view model and a view using a conversion hint and no converter overrides.

Type parameters

NameDescription
TViewModelThe type of the view model that is bound.
TViewThe type of the view being bound.
TViewModelPropertyTypeThe type of the property bound on the view model.
TViewPropertyTypeThe type of the property bound on the view.
TDontCareA dummy type used only to signal view updates.

Parameters

NameTypeDescription
viewModelTViewModel?The instance of the view model object to be bound.
viewTViewThe instance of the view object to be bound.
viewModelPropertyExpression>An expression representing the property to be bound on the view model.
viewPropertyExpression>An expression representing the property to be bound on the view.
signalViewUpdateIObservable?An observable that signals when the view property has changed.
conversionHintobject?An object that can provide a hint for the converter.

Returns: IReactiveBinding -- An instance of IDisposable that, when disposed, disconnects the binding.

2. Overload

public 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

View source

Inherited documentation

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

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

NameDescription
TViewModelThe type of the view model that is bound.
TViewThe type of the view being bound.
TViewModelPropertyTypeThe type of the property bound on the view model.
TViewPropertyTypeThe type of the property bound on the view.
TDontCareA dummy type used only to signal view updates.

Parameters

NameTypeDescription
viewModelTViewModel?The instance of the view model object to be bound.
viewTViewThe instance of the view object to be bound.
viewModelPropertyExpression>An expression representing the property to be bound on the view model.
viewPropertyExpression>An expression representing the property to be bound on the view.
signalViewUpdateIObservable?An observable that signals when the view property has changed.
conversionHintobject?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 -- An instance of IDisposable that, when disposed, disconnects the binding.

3. Overload

public 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

View source

Inherited documentation

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

Summary: Creates a two-way binding between a view model and a view using a conversion hint and converter overrides.

Type parameters

NameDescription
TViewModelThe type of the view model that is bound.
TViewThe type of the view being bound.
TViewModelPropertyTypeThe type of the property bound on the view model.
TViewPropertyTypeThe type of the property bound on the view.
TDontCareA dummy type used only to signal view updates.

Parameters

NameTypeDescription
viewModelTViewModel?The instance of the view model object to be bound.
viewTViewThe instance of the view object to be bound.
viewModelPropertyExpression>An expression representing the property to be bound on the view model.
viewPropertyExpression>An expression representing the property to be bound on the view.
signalViewUpdateIObservable?An observable that signals when the view property has changed.
conversionHintobject?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 -- An instance of IDisposable that, when disposed, disconnects the binding.

4. Overload

public 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

View source

Inherited documentation

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

Summary: Creates a two-way binding between a view model and a view with full control over converter overrides and trigger direction.

Type parameters

NameDescription
TViewModelThe type of the view model that is bound.
TViewThe type of the view being bound.
TViewModelPropertyTypeThe type of the property bound on the view model.
TViewPropertyTypeThe type of the property bound on the view.
TDontCareA dummy type used only to signal view updates.

Parameters

NameTypeDescription
viewModelTViewModel?The instance of the view model object to be bound.
viewTViewThe instance of the view object to be bound.
viewModelPropertyExpression>An expression representing the property to be bound on the view model.
viewPropertyExpression>An expression representing the property to be bound on the view.
signalViewUpdateIObservable?An observable that signals when the view property has changed.
conversionHintobject?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 -- An instance of IDisposable that, when disposed, disconnects the binding.

5. Overload

public 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

View source

Inherited documentation

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

Summary: Creates a two-way binding between a view model and a view using explicit converter delegates with default trigger direction.

Type parameters

NameDescription
TViewModelThe type of the view model that is bound.
TViewThe type of the view being bound.
TViewModelPropertyTypeThe type of the property bound on the view model.
TViewPropertyTypeThe type of the property bound on the view.
TDontCareA dummy type used only to signal view updates.

Parameters

NameTypeDescription
viewModelTViewModel?The instance of the view model object to be bound.
viewTViewThe instance of the view object to be bound.
viewModelPropertyExpression>An expression representing the property to be bound on the view model.
viewPropertyExpression>An expression representing the property to be bound on the view.
signalViewUpdateIObservable?An observable that signals when the view property has changed.
viewModelToViewConverterFuncDelegate to convert the view model property value to the view property type.
viewToViewModelConverterFuncDelegate to convert the view property value to the view model property type.

Returns: IReactiveBinding -- An instance of IDisposable that, when disposed, disconnects the binding.

6. Overload

public 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

View source

Inherited documentation

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

Summary: Creates a two-way binding between a view model and a view using explicit converter delegates and a specified trigger direction.

Type parameters

NameDescription
TViewModelThe type of the view model that is bound.
TViewThe type of the view being bound.
TViewModelPropertyTypeThe type of the property bound on the view model.
TViewPropertyTypeThe type of the property bound on the view.
TDontCareA dummy type used only to signal view updates.

Parameters

NameTypeDescription
viewModelTViewModel?The instance of the view model object to be bound.
viewTViewThe instance of the view object to be bound.
viewModelPropertyExpression>An expression representing the property to be bound on the view model.
viewPropertyExpression>An expression representing the property to be bound on the view.
signalViewUpdateIObservable?An observable that signals when the view property has changed.
viewModelToViewConverterFuncDelegate to convert the view model property value to the view property type.
viewToViewModelConverterFuncDelegate to convert the view property value to the view model property type.
triggerUpdate[TriggerUpdate](#The trigger update direction.

Returns: IReactiveBinding -- An instance of IDisposable that, when disposed, disconnects the binding.