Skip to main content

BindingExpressionBase Class

Definition​

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

Represents the base class for binding expressions.

public class BindingExpressionBase

Inheritance: object -> BindingExpressionBase

Implements: IValueEntry, ISetterInstance, IDisposable

Remarks​

A binding expression represents an instantiation of a binding on an object.

Methods​

NameDescription
DisposeNo summary available.
UpdateSourceSends the current binding target value to the binding source property in Avalonia.Data.BindingMode.TwoWay or Avalonia.Data.BindingMode.OneWayToSource bindings.
UpdateTargetForces a data transfer from the binding source to the binding target.

Dispose Method​

public void Dispose()

UpdateSource Method​

Sends the current binding target value to the binding source property in Avalonia.Data.BindingMode.TwoWay or Avalonia.Data.BindingMode.OneWayToSource bindings.

public void UpdateSource()

Remarks​

This method does nothing when the Mode of the binding is not Avalonia.Data.BindingMode.TwoWay or Avalonia.Data.BindingMode.OneWayToSource.

If the UpdateSourceTrigger value of your binding is set to Avalonia.Data.UpdateSourceTrigger.Explicit, you must call the Avalonia.Data.BindingExpressionBase.UpdateSource method or the changes will not propagate back to the source.

UpdateTarget Method​

Forces a data transfer from the binding source to the binding target.

public void UpdateTarget()

Properties​

NameDescription
PriorityGets the priority of the binding expression.
TargetPropertyGets the Avalonia.AvaloniaProperty that the binding expression is targeting.

Priority Property​

Gets the priority of the binding expression.

public Avalonia.Data.BindingPriority Priority { get; set; }

TargetProperty Property​

Gets the Avalonia.AvaloniaProperty that the binding expression is targeting.

public Avalonia.AvaloniaProperty TargetProperty { get; set; }