ControlUpdateMode 列舉

定義

判斷對資料來源值所做的變更何時傳播到相對應資料繫結的控制項屬性。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
繼承
ControlUpdateMode

欄位

Never 1

資料來源值變更時,繫結控制項絕不更新。The bound control is never updated when a data source value changes. 資料來源為唯寫。The data source is write-only.

OnPropertyChanged 0

繫結控制項是在資料來源值變更時更新,或是資料來源位置變更時更新。The bound control is updated when the data source value changes, or the data source position changes.

備註

是由類別Binding的屬性所使用。 ControlUpdateMode ControlUpdateModeThe ControlUpdateMode is used by the ControlUpdateMode property of the Binding class. OnPropertyChanged 是預設值。OnPropertyChanged is the default value. 若要在更新模式永遠不進行控制更新時強制執行, ReadValue請在相關Binding的上使用方法。To force a control update when the update mode is Never, use the ReadValue method on the related Binding.

適用於