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
)
Public Overridable Function AddValueChangedHandler (
dataItem As Object,
handler As EventHandler(Of EventArgs)
) As Object
abstract AddValueChangedHandler :
dataItem : Object *
handler : EventHandler<EventArgs> -> Object
override AddValueChangedHandler :
dataItem : Object *
handler : EventHandler<EventArgs> -> Object
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:
Objectobject 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