ControlUpdateMode ControlUpdateMode ControlUpdateMode ControlUpdateMode Enum

定义

确定对数据源值所做的更改何时传播到相应的数据绑定控件属性。Determines when changes to a data source value get propagated to the corresponding data-bound control property.

public enum class ControlUpdateMode
public enum ControlUpdateMode
type ControlUpdateMode = 
Public Enum ControlUpdateMode
继承
ControlUpdateModeControlUpdateModeControlUpdateModeControlUpdateMode

字段

Never Never Never Never 1

当数据源值发生更改时,绑定控件从不更新。The bound control is never updated when a data source value changes. 数据源是只写的。The data source is write-only.

OnPropertyChanged OnPropertyChanged OnPropertyChanged OnPropertyChanged 0

当数据源值发生更改或数据源位置发生更改时,将更新绑定控件。The bound control is updated when the data source value changes, or the data source position changes.

注解

ControlUpdateModeControlUpdateMode属性的Binding类。The ControlUpdateMode is used by the ControlUpdateMode property of the Binding class. OnPropertyChanged 是默认值。OnPropertyChanged is the default value. 若要强制控制更新的更新模式为从不时,请使用ReadValue方法的相关BindingTo force a control update when the update mode is Never, use the ReadValue method on the related Binding.

适用于