# ControlBinding<T, 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 ControlBinding<T, TValue> : BindableBinding<T, TValue>
```

> **Obsolete:** Since 2.1: Use Eto.Forms.BindableBinding<T, TValue> instead

Binding object to easily bind a property of a [Control](https://eto.picoe.ca/api/type/eto.forms.control.md).

**Remarks:** This provides control-specific binding, such as binding to a [BindableWidget.DataContext](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/datacontext.md). Any bindings created using this will also add to the [BindableWidget.Bindings](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/bindings.md) collection to keep its reference.

**Type parameters:**

- `T` (where Control)
- `TValue`

## Constructors

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

## Inherited Members

- From [BindableBinding<T, TValue>](https://eto.picoe.ca/api/type/eto.forms.bindablebinding-2.md): [Bind](https://eto.picoe.ca/api/type/eto.forms.bindablebinding-2/bind.md), [BindDataContext<TObject>](https://eto.picoe.ca/api/type/eto.forms.bindablebinding-2/binddatacontext.md), [Cast<TNewValue>](https://eto.picoe.ca/api/type/eto.forms.bindablebinding-2/cast.md), [CatchException<TException>](https://eto.picoe.ca/api/type/eto.forms.bindablebinding-2/catchexception.md), [Child<TNewValue>](https://eto.picoe.ca/api/type/eto.forms.bindablebinding-2/child.md), [Convert<TNewValue>](https://eto.picoe.ca/api/type/eto.forms.bindablebinding-2/convert.md)
- From [ObjectBinding<T, TValue>](https://eto.picoe.ca/api/type/eto.forms.objectbinding-2.md): [DataItem](https://eto.picoe.ca/api/type/eto.forms.objectbinding-2/dataitem.md), [DataValue](https://eto.picoe.ca/api/type/eto.forms.objectbinding-2/datavalue.md), [GetDataItem](https://eto.picoe.ca/api/type/eto.forms.objectbinding-2/getdataitem.md), [GettingNullValue](https://eto.picoe.ca/api/type/eto.forms.objectbinding-2/gettingnullvalue.md), [InnerBinding](https://eto.picoe.ca/api/type/eto.forms.objectbinding-2/innerbinding.md), [SettingNullValue](https://eto.picoe.ca/api/type/eto.forms.objectbinding-2/settingnullvalue.md), [Bind<TObject>](https://eto.picoe.ca/api/type/eto.forms.objectbinding-2/bind.md), [HandleEvent](https://eto.picoe.ca/api/type/eto.forms.objectbinding-2/handleevent.md), [RemoveEvent](https://eto.picoe.ca/api/type/eto.forms.objectbinding-2/removeevent.md), [ToString](https://eto.picoe.ca/api/type/eto.forms.objectbinding-2/tostring.md), [TriggerDataValueChanged](https://eto.picoe.ca/api/type/eto.forms.objectbinding-2/triggerdatavaluechanged.md), [Unbind](https://eto.picoe.ca/api/type/eto.forms.objectbinding-2/unbind.md)
- 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), [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), [Update](https://eto.picoe.ca/api/type/eto.forms.binding/update.md)
