Binding.Mode Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets a value that indicates the direction of the data flow in the binding.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
<Binding Mode="bindingModeMemberName"/>
Property Value
Type: System.Windows.Data.BindingModeOne of the BindingMode values. The default is BindingMode.OneWay.
| Exception | Condition |
|---|---|
| InvalidOperationException | The Binding has already been attached to a target element, and cannot be modified. |
In OneWay or TwoWay bindings, the source object must implement INotifyPropertyChanged in order for the target to update when the source changes.
Show: