| BindableExtensionsBindT Method (IBindable, String, DirectBindingT, DualBindingMode) | 
 
            Adds a new dual binding between the control and the specified source binding
            
 
    Namespace: 
   Eto.Forms
    Assembly:
   Eto (in Eto.dll) Version: 2.5.3-dev
 Syntax
Syntaxpublic static DualBinding<T> Bind<T>(
	this IBindable bindable,
	string widgetPropertyName,
	DirectBinding<T> sourceBinding,
	DualBindingMode mode = DualBindingMode.TwoWay
)
<ExtensionAttribute>
Public Shared Function Bind(Of T) ( 
	bindable As IBindable,
	widgetPropertyName As String,
	sourceBinding As DirectBinding(Of T),
	Optional mode As DualBindingMode = DualBindingMode.TwoWay
) As DualBinding(Of T)
[<ExtensionAttribute>]
static member Bind : 
        bindable : IBindable * 
        widgetPropertyName : string * 
        sourceBinding : 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
- widgetPropertyName
- Type: SystemString
 Property on the control to update
- sourceBinding
- Type: Eto.FormsDirectBindingT
 Binding to get/set the value to from the control
- 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,System.String,Eto.Forms.DirectBinding{``0},Eto.Forms.DualBindingMode)"] 
Return Value
Type: 
DualBindingTA new instance of the DualBinding class that is used to control the binding
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
See Also