Click or drag to resize

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.4.0
Syntax
public static DualBinding<T> Bind<T>(
	this IBindable bindable,
	IndirectBinding<T> controlBinding,
	DirectBinding<T> valueBinding,
	DualBindingMode mode = DualBindingMode.TwoWay
)

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