Click or drag to resize

ControlBindingT, TValue Constructor (T, FuncT, TValue, ActionT, TValue, ActionT, EventHandlerEventArgs, ActionT, EventHandlerEventArgs)

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
public ControlBinding(
	T dataItem,
	Func<T, TValue> getValue,
	Action<T, TValue> setValue = null,
	Action<T, EventHandler<EventArgs>> addChangeEvent = null,
	Action<T, EventHandler<EventArgs>> removeChangeEvent = null


Type: T
Data item to get/set the values from/to.
Type: SystemFuncT, TValue
Delegate to get the value from the object.
setValue (Optional)
Type: SystemActionT, TValue
Delegate to set the value to the object.
addChangeEvent (Optional)
Type: SystemActionT, EventHandlerEventArgs
Delegate to add the change event.
removeChangeEvent (Optional)
Type: SystemActionT, EventHandlerEventArgs
Delegate to remove the chang event.
See Also