Binding.Mode Property
Silverlight
Gets or sets a value that indicates the direction of the data flow in the binding.
Namespace: System.Windows.Data
Assembly: System.Windows (in System.Windows.dll)
<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.
See Binding Markup Extension to learn how Mode can be set as a binding property through the Binding markup extension, which enables specifying an entire Binding as an attribute string.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.