Click or drag to resize

BindableExtensionsBindT Method (IBindable, String, Object, String, DualBindingMode)

Adds a new dual binding between the control and the specified object

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
public static DualBinding<T> Bind<T>(
	this IBindable bindable,
	string propertyName,
	Object source,
	string sourcePropertyName,
	DualBindingMode mode = DualBindingMode.TwoWay


Type: Eto.FormsIBindable
Bindable object to add the binding to
Type: SystemString
Property on the control to update
Type: SystemObject
Object to bind to
Type: SystemString
Property on the source object to retrieve/set the value of
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,System.Object,System.String,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