Binding.UpdateSourceTrigger Binding.UpdateSourceTrigger Binding.UpdateSourceTrigger Binding.UpdateSourceTrigger Property

Definition

Gets or sets a value that determines the timing of binding source updates for two-way bindings.

public : UpdateSourceTrigger UpdateSourceTrigger { get; set; }
UpdateSourceTrigger UpdateSourceTrigger();

void UpdateSourceTrigger(UpdateSourceTrigger updatesourcetrigger);
public UpdateSourceTrigger UpdateSourceTrigger { get; set; }
Public ReadWrite Property UpdateSourceTrigger As UpdateSourceTrigger
<Binding UpdateSourceTrigger="updateSourceTriggerMemberName"/>

Property Value

One of the UpdateSourceTrigger values. The default is Default, which evaluates as a PropertyChanged update behavior.

Remarks

Your other choice for an UpdateSourceTrigger behavior is to set the value to be Explicit. When a two-way binding has its UpdateSourceTrigger value as Explicit, you must explicitly call UpdateSource on the relevant BindingExpression to cause the changed target values to update the data source. Use GetBindingExpression to get a BindingExpression from an object where a Binding to a dependency property exists and that binding is a two-way binding with UpdateSourceTrigger="Explicit".

You can't set the property values of a Binding object after that binding has been attached to a target element and target property. If you attempt this you'll get a run-time exception.

See also