# DelegateBinding<TValue> class

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
public class DelegateBinding<TValue> : DirectBinding<TValue>
```

Direct delegate binding.

**Remarks:** This is a direct binding, in that the get/set delegates can get/set the value directly without any associated object instance. This is used when binding directly to a property or when an object instance isn't needed to get/set a value.

**Type parameters:**

- `TValue`

## Constructors

- [DelegateBinding<TValue>](https://eto.picoe.ca/api/type/eto.forms.delegatebinding-1/ctor.md): (2 overloads) Initializes a new instance of the [DelegateBinding<TValue>](https://eto.picoe.ca/api/type/eto.forms.delegatebinding-1.md) class.

## Properties

- [AddChangeEvent](https://eto.picoe.ca/api/type/eto.forms.delegatebinding-1/addchangeevent.md): Gets or sets the delegate to register the change event, when needed by the consumer of this binding.
- [DataValue](https://eto.picoe.ca/api/type/eto.forms.delegatebinding-1/datavalue.md): Gets or sets the value of this binding
- [GetValue](https://eto.picoe.ca/api/type/eto.forms.delegatebinding-1/getvalue.md): Gets or sets the delegate to get the value for this binding.
- [RemoveChangeEvent](https://eto.picoe.ca/api/type/eto.forms.delegatebinding-1/removechangeevent.md): Gets or sets the delegate to remove the change event.
- [SetValue](https://eto.picoe.ca/api/type/eto.forms.delegatebinding-1/setvalue.md): Gets or sets the delegate to set the value for this binding.

## Methods

- [HandleEvent](https://eto.picoe.ca/api/type/eto.forms.delegatebinding-1/handleevent.md): Hooks up the late bound events for this object
- [RemoveEvent](https://eto.picoe.ca/api/type/eto.forms.delegatebinding-1/removeevent.md): Removes the late bound events for this object

## Inherited Members

- From [DirectBinding<T>](https://eto.picoe.ca/api/type/eto.forms.directbinding-1.md): [DataValueChanged](https://eto.picoe.ca/api/type/eto.forms.directbinding-1/datavaluechanged.md), [Cast<TValue>](https://eto.picoe.ca/api/type/eto.forms.directbinding-1/cast.md), [CatchException<TException>](https://eto.picoe.ca/api/type/eto.forms.directbinding-1/catchexception.md), [Child<TValue>](https://eto.picoe.ca/api/type/eto.forms.directbinding-1/child.md), [Convert<TValue>](https://eto.picoe.ca/api/type/eto.forms.directbinding-1/convert.md), [OnDataValueChanged](https://eto.picoe.ca/api/type/eto.forms.directbinding-1/ondatavaluechanged.md), [ToBool](https://eto.picoe.ca/api/type/eto.forms.directbinding-1/tobool.md), [ToType<TType>](https://eto.picoe.ca/api/type/eto.forms.directbinding-1/totype.md)
- From [Binding](https://eto.picoe.ca/api/type/eto.forms.binding.md): [Changed](https://eto.picoe.ca/api/type/eto.forms.binding/changed.md), [Changing](https://eto.picoe.ca/api/type/eto.forms.binding/changing.md), [OnChanged](https://eto.picoe.ca/api/type/eto.forms.binding/onchanged.md), [OnChanging](https://eto.picoe.ca/api/type/eto.forms.binding/onchanging.md), [Unbind](https://eto.picoe.ca/api/type/eto.forms.binding/unbind.md), [Update](https://eto.picoe.ca/api/type/eto.forms.binding/update.md)
