BindingExpression::UpdateSource Method ()

 

Sends the current binding target value to the binding source property in TwoWay or OneWayToSource bindings.

Namespace:   System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
virtual void UpdateSource() override

Exception Condition
InvalidOperationException

The binding has been detached from its target.

This method does nothing when the Mode of the binding is not TwoWay or OneWayToSource.

If the UpdateSourceTrigger value of your binding is set to Explicit, you must call the UpdateSource method or the changes will not propagate back to the source.

.NET Framework
Available since 3.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: