Skip to main content

BindingMode Enum

Definition

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

Defines possible binding modes.

public enum BindingMode

Inheritance: Enum -> BindingMode

Fields

NameDescription
DefaultUses the default binding mode specified for the property.
OneTimeUpdates the target when the application starts or when the data context changes.
OneWayBinds one way from source to target.
OneWayToSourceBinds one way from target to source.
TwoWayBinds two-way with the initial value coming from the target.

Default Field

Uses the default binding mode specified for the property.

public Avalonia.Data.BindingMode Default

OneTime Field

Updates the target when the application starts or when the data context changes.

public Avalonia.Data.BindingMode OneTime

OneWay Field

Binds one way from source to target.

public Avalonia.Data.BindingMode OneWay

OneWayToSource Field

Binds one way from target to source.

public Avalonia.Data.BindingMode OneWayToSource

TwoWay Field

Binds two-way with the initial value coming from the target.

public Avalonia.Data.BindingMode TwoWay