# BindingMode

> Binding mode to control how a binding is updated.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine.UIElements](/engine/6000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public enum BindingMode
```

## Remarks

To let the data binding system know that the value in the UI changed, use NotifyPropertyChanged.

## Fields

| Value                                                                                              | Description                                                                                                          |
| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| [ToSource](/engine/6000.0/script-reference/unityengine/uielements/bindingmode/tosource.md)         | Changes will only be replicated from the UI to the data source for this binding.                                     |
| [ToTarget](/engine/6000.0/script-reference/unityengine/uielements/bindingmode/totarget.md)         | Changes will only be replicated from the source to the UI for this binding.                                          |
| [ToTargetOnce](/engine/6000.0/script-reference/unityengine/uielements/bindingmode/totargetonce.md) | Changes will only be replicated once, from the source to the UI. This binding will be ignored on subsequent updates. |
| [TwoWay](/engine/6000.0/script-reference/unityengine/uielements/bindingmode/twoway.md)             | Changes on the data source will be replicated in the UI. Changes on the UI will be replicated to the data source.    |
