Click or drag to resize

IndirectBindingTAddValueChangedHandler Method

Adds a handler to trap when the value of this binding changes for the specified object

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public virtual Object AddValueChangedHandler(
	Object dataItem,
	EventHandler<EventArgs> handler
)

Parameters

dataItem
Type: SystemObject
object to hook up the value changed event for
handler
Type: SystemEventHandlerEventArgs
handler for when the value of this binding changes for the specified object

Return Value

Type: Object
object to track the changed handler (must be passed to RemoveValueChangedHandler(Object, EventHandlerEventArgs) to remove)
Remarks
This is used to wire up events (or other mechanisms) to detect if the value is changed for a particular object. This is typically used to fire the DataValueChanged event (which is wired up automatically)
See Also