UpdateSourceTrigger Enum

Definition

Describes the timing of binding source updates.

public enum UpdateSourceTrigger
Inheritance
UpdateSourceTrigger

Fields

Name Value Description
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.

PropertyChanged 1

Updates the binding source immediately whenever the binding target property changes.

LostFocus 2

Updates the binding source whenever the binding target element loses focus.

Explicit 3

Updates the binding source only when you call the UpdateSource() method.

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

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also