BindingExpression.UpdateSource 方法

定义

将当前绑定目标值发送到 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 ()

例外

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

注解

Mode 绑定的不是或时,此方法不执行任何操作 TwoWay OneWayToSourceThis 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.

适用于

另请参阅