Binding.UpdateSourceTrigger 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 determines the timing of binding source updates for two-way bindings.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
<Binding UpdateSourceTrigger="updateSourceTriggerMemberName"/>
Property Value
Type: System.Windows.Data.UpdateSourceTriggerA value that determines when the binding source is updated. The default is Default.
| Exception | Condition |
|---|---|
| InvalidOperationException | The Binding has already been attached to a target element, and cannot be modified. |
Set this property to Explicit on two-way bindings to disable automatic updates to the binding source. This is useful when you want to perform validation on binding targets before any value changes are copied to the binding source. To update the binding source, use the FrameworkElement.GetBindingExpression method to retrieve a BindingExpression for the target property, and then call the UpdateSource method.