Click or drag to resize

ObjectBinding<T, TValue>.Bind Method (Func<TValue>, Action<TValue>, Action<EventHandler<EventArgs>>, Action<EventHandler<EventArgs>>, 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: System.Func<TValue>
Delegate to get the value.
setValue (Optional)
Type: System.Action<TValue>
Delegate to set the value when changed.
addChangeEvent (Optional)
Type: System.Action<EventHandler<EventArgs>>
Delegate to add a change event when the value changes.
removeChangeEvent (Optional)
Type: System.Action<EventHandler<EventArgs>>
Delegate to remove the change event.
mode (Optional)
Type: Eto.Forms.DualBindingMode
Dual binding mode.

Return Value

Type: DualBinding<TValue>

[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