BindingExpression.UpdateSource Method

Definition

将当前绑定目标值发送到 TwoWayOneWayToSource 绑定中的绑定源属性。Sends the current binding target value to the binding source property in TwoWay or OneWayToSource bindings.

public:
 override void UpdateSource();
public override void UpdateSource ();
override this.UpdateSource : unit -> unit
Public Overrides Sub UpdateSource ()

Exceptions

此绑定已从其目标分离。The binding has been detached from its target.

Remarks

当绑定的 ModeTwoWayOneWayToSource时,此方法不执行任何操作。This method does nothing when the Mode of the binding is not TwoWay or OneWayToSource.

如果绑定的 UpdateSourceTrigger 值设置为 Explicit,则必须调用 UpdateSource 方法,否则更改不会传播回源。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.

Applies to

See also