Skip to main content

BindingExpressionBase Class

Definition

Namespace:Avalonia.Data
Assembly:Avalonia.Base
Package:Avalonia
public class BindingExpressionBase

Inheritance: object -> BindingExpressionBase

Implements: ISetterInstance, IDisposable

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()