Click or drag to resize

ObjectBindingT, TValueBind Method (FuncTValue, ActionTValue, ActionEventHandlerEventArgs, ActionEventHandlerEventArgs, DualBindingMode)

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public DualBinding<TValue> Bind(
	Func<TValue> getValue,
	Action<TValue> setValue = null,
	Action<EventHandler<EventArgs>> addChangeEvent = null,
	Action<EventHandler<EventArgs>> removeChangeEvent = null,
	DualBindingMode mode = DualBindingMode.TwoWay
)

Parameters

getValue
Type: SystemFuncTValue
Delegate to get the value.
setValue (Optional)
Type: SystemActionTValue
Delegate to set the value when changed.
addChangeEvent (Optional)
Type: SystemActionEventHandlerEventArgs
Delegate to add a change event when the value changes.
removeChangeEvent (Optional)
Type: SystemActionEventHandlerEventArgs
Delegate to remove the change event.
mode (Optional)
Type: Eto.FormsDualBindingMode
Dual binding mode.

Return Value

Type: DualBindingTValue

[Missing <returns> documentation for "M:Eto.Forms.ObjectBinding`2.Bind(System.Func{`1},System.Action{`1},System.Action{System.EventHandler{System.EventArgs}},System.Action{System.EventHandler{System.EventArgs}},Eto.Forms.DualBindingMode)"]

Remarks
See Also