BindingExpressionBase Class
Definition
Represents the base class for binding expressions.
public class BindingExpressionBase
Remarks
A binding expression represents an instantiation of a binding on an object.
Methods
| Name | Description |
|---|---|
| Dispose | No summary available. |
| UpdateSource | Sends the current binding target value to the binding source property in Avalonia.Data.BindingMode.TwoWay or Avalonia.Data.BindingMode.OneWayToSource bindings. |
| UpdateTarget | Forces 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
| Name | Description |
|---|---|
| Priority | Gets the priority of the binding expression. |
| TargetProperty | Gets 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; }