Click or drag to resize

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
public static DualBinding<T> Bind<T>(
	this IBindable bindable,
	string widgetPropertyName,
	DirectBinding<T> sourceBinding,
	DualBindingMode mode = DualBindingMode.TwoWay


Type: Eto.FormsIBindable
Bindable object to add the binding to
Type: SystemString
Property on the control to update
Type: Eto.FormsDirectBindingT
Binding to get/set the value to from the control
mode (Optional)
Type: Eto.FormsDualBindingMode
Mode of the binding

Type Parameters


[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: DualBindingT
A 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