Click or drag to resize

DelegateBindingT, TValue Class

Indirect binding using delegate methods
Inheritance Hierarchy
SystemObject
  Eto.FormsBinding
    Eto.FormsIndirectBindingTValue
      Eto.FormsDelegateBindingT, TValue

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.4.0
Syntax
public class DelegateBinding<T, TValue> : IndirectBinding<TValue>

Type Parameters

T
Type of the object this binding will get/set the values from/to
TValue
Type of the value this binding will get/set

The DelegateBindingT, TValue type exposes the following members.

Constructors
  NameDescription
Public methodDelegateBindingT, TValue(FuncT, TValue, ActionT, TValue, String, TValue, TValue)
Initializes a new instance of the DelegateBindingT, TValue class.
Public methodDelegateBindingT, TValue(FuncT, TValue, ActionT, TValue, ActionT, EventHandlerEventArgs, ActionT, EventHandlerEventArgs, TValue, TValue)
Initializes a new instance of the DelegateBindingT, TValue class.
Top
Properties
  NameDescription
Public propertyAddChangeEvent
Gets or sets the delegate to register the change event, when needed by the consumer of this binding.
Public propertyDefaultGetValue
Gets or sets the default get value, when the object instance is null.
Public propertyDefaultSetValue
Gets or sets the default set value, when the incoming value is null.
Public propertyGetValue
Gets or sets the delegate to get the value for this binding.
Public propertyRemoveChangeEvent
Gets or sets the delegate to remove the change event.
Public propertySetValue
Gets or sets the delegate to set the value for this binding.
Top
Methods
  NameDescription
Public methodAddValueChangedHandler
Wires an event handler to fire when the property of the dataItem is changed
(Overrides IndirectBindingTAddValueChangedHandler(Object, EventHandlerEventArgs).)
Protected methodInternalGetValue
Implements the logic to get the value from the specified object
(Overrides IndirectBindingTInternalGetValue(Object).)
Protected methodInternalSetValue
Implements the logic to set the value to the specified object
(Overrides IndirectBindingTInternalSetValue(Object, T).)
Public methodRemoveValueChangedHandler (Overrides IndirectBindingTRemoveValueChangedHandler(Object, EventHandlerEventArgs).)
Top
Remarks
This is an indirect binding, in that the object to get/set the values from/to is passed to each of the delegates to get/set the value. This is used for things like columns in a Grid control to bind to specific values of each item in the grid.
See Also