UpdateSourceTrigger Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes the timing of binding source updates.
public enum class UpdateSourceTrigger
public enum UpdateSourceTrigger
type UpdateSourceTrigger =
Public Enum UpdateSourceTrigger
- Inheritance
Fields
Default | 0 | The default UpdateSourceTrigger value of the binding target property. The default value for most dependency properties is PropertyChanged, while the Text property has a default value of LostFocus. |
Explicit | 3 | Updates the binding source only when you call the UpdateSource() method. |
LostFocus | 2 | Updates the binding source whenever the binding target element loses focus. |
PropertyChanged | 1 | Updates the binding source immediately whenever the binding target property changes. |
Remarks
A programmatic way to determine the default UpdateSourceTrigger
value of a dependency property is to get the property metadata of the property using DependencyProperty.GetMetadata, and then to check the value of the FrameworkPropertyMetadata.DefaultUpdateSourceTrigger property.
For more information, see Binding.UpdateSourceTrigger.
Applies to
See also
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應