Click or drag to resize

ObjectBindingT, TValueBind Method (Object, String, DualBindingMode)

Creates a binding to the propertyName of the specified objectValue.

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public DualBinding<TValue> Bind(
	Object objectValue,
	string propertyName,
	DualBindingMode mode = DualBindingMode.TwoWay
)

Parameters

objectValue
Type: SystemObject
Object to bind to.
propertyName
Type: SystemString
Name of the property to bind to on the objectValue.
mode (Optional)
Type: Eto.FormsDualBindingMode
Direction of the binding.

Return Value

Type: DualBindingTValue

[Missing <returns> documentation for "M:Eto.Forms.ObjectBinding`2.Bind(System.Object,System.String,Eto.Forms.DualBindingMode)"]

Remarks
This is a shortcut to using the PropertyBindingT. This has the advantage of registering automatically to INotifyPropertyChanged or to an event named after the property with a "Changed" suffix.
See Also