Click or drag to resize

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

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

Parameters

getValue (Optional)
Type: SystemFuncT, TValue
Delegate to get the value for the binding.
setValue (Optional)
Type: SystemActionT, TValue
Delegate to set the value for the binding.
addChangeEvent (Optional)
Type: SystemFuncT, EventHandlerEventArgs, Object
Delegate to register the change event, when needed by the consumer of this binding.
removeChangeEvent (Optional)
Type: SystemActionObject, 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