UpdateSourceTrigger Enumerazione
Definizione
Descrive gli intervalli di tempo degli aggiornamenti delle origini di associazione.Describes the timing of binding source updates.
public enum class UpdateSourceTrigger
public enum UpdateSourceTrigger
type UpdateSourceTrigger =
Public Enum UpdateSourceTrigger
- Ereditarietà
Campi
Default | 0 | Valore UpdateSourceTrigger predefinito della proprietà di destinazione del binding.The default UpdateSourceTrigger value of the binding target property. Il valore predefinito per la maggior parte delle proprietà di dipendenza è PropertyChanged, mentre la proprietà Text ha il valore predefinito LostFocus.The default value for most dependency properties is PropertyChanged, while the Text property has a default value of LostFocus. |
Explicit | 3 | Aggiorna l'origine di associazione solo quando si chiama il metodo UpdateSource().Updates the binding source only when you call the UpdateSource() method. |
LostFocus | 2 | Aggiorna l'origine dell'associazione ogni volta che l'elemento di destinazione del binding perde lo stato attivo.Updates the binding source whenever the binding target element loses focus. |
PropertyChanged | 1 | Aggiorna immediatamente l'origine dell'associazione ogni volta che la proprietà di destinazione del binding viene modificata.Updates the binding source immediately whenever the binding target property changes. |
Commenti
Un modo programmatico per determinare il UpdateSourceTrigger
valore predefinito di una proprietà di dipendenza consiste nell'ottenere i metadati della proprietà usando DependencyProperty.GetMetadata e quindi controllare il valore della FrameworkPropertyMetadata.DefaultUpdateSourceTrigger Proprietà.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.
Per altre informazioni, vedere Binding.UpdateSourceTrigger.For more information, see Binding.UpdateSourceTrigger.