DelegateBindingTValue Constructor (FuncTValue, ActionTValue, ActionEventHandlerEventArgs, ActionEventHandlerEventArgs) |
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public DelegateBinding(
Func<TValue> getValue = null,
Action<TValue> setValue = null,
Action<EventHandler<EventArgs>> addChangeEvent = null,
Action<EventHandler<EventArgs>> removeChangeEvent = null
)
Public Sub New (
Optional getValue As Func(Of TValue) = Nothing,
Optional setValue As Action(Of TValue) = Nothing,
Optional addChangeEvent As Action(Of EventHandler(Of EventArgs)) = Nothing,
Optional removeChangeEvent As Action(Of EventHandler(Of EventArgs)) = Nothing
)
new :
?getValue : Func<'TValue> *
?setValue : Action<'TValue> *
?addChangeEvent : Action<EventHandler<EventArgs>> *
?removeChangeEvent : Action<EventHandler<EventArgs>>
(* Defaults:
let _getValue = defaultArg getValue null
let _setValue = defaultArg setValue null
let _addChangeEvent = defaultArg addChangeEvent null
let _removeChangeEvent = defaultArg removeChangeEvent null
*)
-> DelegateBinding
Parameters
- getValue (Optional)
- Type: SystemFuncTValue
Delegate to get the value for the binding. - setValue (Optional)
- Type: SystemActionTValue
Delegate to set the value for the binding. - addChangeEvent (Optional)
- Type: SystemActionEventHandlerEventArgs
Delegate to register the change event, when needed by the consumer of this binding. - removeChangeEvent (Optional)
- Type: SystemActionEventHandlerEventArgs
Delegate to remove the change event.
See Also