BindableExtensionsBindT Method (IBindable, IndirectBindingT, DirectBindingT, DualBindingMode) |
Adds a new binding to the control with a direct value binding
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public static DualBinding<T> Bind<T>(
this IBindable bindable,
IndirectBinding<T> controlBinding,
DirectBinding<T> valueBinding,
DualBindingMode mode = DualBindingMode.TwoWay
)
<ExtensionAttribute>
Public Shared Function Bind(Of T) (
bindable As IBindable,
controlBinding As IndirectBinding(Of T),
valueBinding As DirectBinding(Of T),
Optional mode As DualBindingMode = DualBindingMode.TwoWay
) As DualBinding(Of T)
[<ExtensionAttribute>]
static member Bind :
bindable : IBindable *
controlBinding : IndirectBinding<'T> *
valueBinding : DirectBinding<'T> *
?mode : DualBindingMode
(* Defaults:
let _mode = defaultArg mode DualBindingMode.TwoWay
*)
-> DualBinding<'T>
Parameters
- bindable
- Type: Eto.FormsIBindable
Bindable object to add the binding to - controlBinding
- Type: Eto.FormsIndirectBindingT
Binding to get/set the value from the control. - valueBinding
- Type: Eto.FormsDirectBindingT
Value binding to get/set the value from another source. - mode (Optional)
- Type: Eto.FormsDualBindingMode
Mode of the binding
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:Eto.Forms.BindableExtensions.Bind``1(Eto.Forms.IBindable,Eto.Forms.IndirectBinding{``0},Eto.Forms.DirectBinding{``0},Eto.Forms.DualBindingMode)"]
Return Value
Type:
DualBindingT[Missing <returns> documentation for "M:Eto.Forms.BindableExtensions.Bind``1(Eto.Forms.IBindable,Eto.Forms.IndirectBinding{``0},Eto.Forms.DirectBinding{``0},Eto.Forms.DualBindingMode)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IBindable. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also