ObjectBindingT, TValueBind Method (DirectBindingTValue, DualBindingMode) |
Creates a new dual binding between the specified sourceBinding and this binding.
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public virtual DualBinding<TValue> Bind(
DirectBinding<TValue> sourceBinding,
DualBindingMode mode = DualBindingMode.TwoWay
)
Public Overridable Function Bind (
sourceBinding As DirectBinding(Of TValue),
Optional mode As DualBindingMode = DualBindingMode.TwoWay
) As DualBinding(Of TValue)
abstract Bind :
sourceBinding : DirectBinding<'TValue> *
?mode : DualBindingMode
(* Defaults:
let _mode = defaultArg mode DualBindingMode.TwoWay
*)
-> DualBinding<'TValue>
override Bind :
sourceBinding : DirectBinding<'TValue> *
?mode : DualBindingMode
(* Defaults:
let _mode = defaultArg mode DualBindingMode.TwoWay
*)
-> DualBinding<'TValue>
Parameters
- sourceBinding
- Type: Eto.FormsDirectBindingTValue
Source binding to bind from. - mode (Optional)
- Type: Eto.FormsDualBindingMode
Dual binding mode.
Return Value
Type:
DualBindingTValue[Missing <returns> documentation for "M:Eto.Forms.ObjectBinding`2.Bind(Eto.Forms.DirectBinding{`1},Eto.Forms.DualBindingMode)"]
Remarks
This creates a
DualBindingT between the specified
sourceBinding and this binding.
You must keep a reference to the binding to unbind when finished.
See Also