Skip to main content

UpdateSourceTrigger Enum

Definition​

Namespace:Avalonia.Data
Assembly:Avalonia.Base
Package:Avalonia

Describes the timing of binding source updates.

public enum UpdateSourceTrigger

Inheritance: Enum -> UpdateSourceTrigger

Fields​

NameDescription
DefaultThe default Avalonia.Data.UpdateSourceTrigger value of the binding target property. This currently defaults to Avalonia.Data.UpdateSourceTrigger.PropertyChanged.
ExplicitUpdates the binding source only when you call the Avalonia.Data.BindingExpressionBase.UpdateSource method.
LostFocusUpdates the binding source whenever the binding target element loses focus.
PropertyChangedUpdates the binding source immediately whenever the binding target property changes.

Default Field​

The default Avalonia.Data.UpdateSourceTrigger value of the binding target property. This currently defaults to Avalonia.Data.UpdateSourceTrigger.PropertyChanged.

public Avalonia.Data.UpdateSourceTrigger Default

Explicit Field​

Updates the binding source only when you call the Avalonia.Data.BindingExpressionBase.UpdateSource method.

public Avalonia.Data.UpdateSourceTrigger Explicit

LostFocus Field​

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

public Avalonia.Data.UpdateSourceTrigger LostFocus

PropertyChanged Field​

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

public Avalonia.Data.UpdateSourceTrigger PropertyChanged