DelegateBindingT, TValue Constructor (FuncT, TValue, ActionT, TValue, String, 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,
string notifyProperty,
TValue defaultGetValue = null,
TValue defaultSetValue = null
)
Public Sub New (
getValue As Func(Of T, TValue),
setValue As Action(Of T, TValue),
notifyProperty As String,
Optional defaultGetValue As TValue = Nothing,
Optional defaultSetValue As TValue = Nothing
)
new :
getValue : Func<'T, 'TValue> *
setValue : Action<'T, 'TValue> *
notifyProperty : string *
?defaultGetValue : 'TValue *
?defaultSetValue : 'TValue
(* Defaults:
let _defaultGetValue = defaultArg defaultGetValue null
let _defaultSetValue = defaultArg defaultSetValue null
*)
-> DelegateBinding
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. - notifyProperty
- Type: SystemString
Name of the property to listen for change events of this binding. - 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