Click or drag to resize

DelegateBindingT, TValue Constructor (FuncT, TValue, ActionT, TValue, ActionT, EventHandlerEventArgs, ActionT, EventHandlerEventArgs, TValue, TValue)

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

Parameters

getValue
Type: SystemFuncT, TValue
Delegate to get the value for the binding.
setValue
Type: SystemActionT, TValue
Delegate to set the value for the binding.
addChangeEvent
Type: SystemActionT, EventHandlerEventArgs
Delegate to register the change event, when needed by the consumer of this binding.
removeChangeEvent
Type: SystemActionT, EventHandlerEventArgs
Delegate to remove the change event.
defaultGetValue (Optional)
Type: TValue
Default get value, when the object instance is null.
defaultSetValue (Optional)
Type: TValue
Default set value, when the incoming value is null.
See Also