Class BindingOperations
public static class BindingOperations
- Inheritance
-
BindingOperations
- Inherited Members
Fields
DoNothing
public static readonly object DoNothing
Field Value
Methods
Apply(AvaloniaObject, AvaloniaProperty, InstancedBinding)
Applies an InstancedBinding a property on an AvaloniaObject.
[Obsolete("This API may be removed in Avalonia 12. If you depend on this API, please open an issue with details of your use-case.")]
public static IDisposable Apply(AvaloniaObject target, AvaloniaProperty property, InstancedBinding binding)
Parameters
target
AvaloniaObjectThe target object.
property
AvaloniaPropertyThe property to bind.
binding
InstancedBindingThe instanced binding.
Returns
- IDisposable
An IDisposable which can be used to cancel the binding.
Apply(AvaloniaObject, AvaloniaProperty, InstancedBinding, object?)
Applies an InstancedBinding a property on an AvaloniaObject.
[Obsolete("Use the Apply(AvaloniaObject, AvaloniaProperty, InstancedBinding) overload.")]
public static IDisposable Apply(AvaloniaObject target, AvaloniaProperty property, InstancedBinding binding, object? anchor)
Parameters
target
AvaloniaObjectThe target object.
property
AvaloniaPropertyThe property to bind.
binding
InstancedBindingThe instanced binding.
anchor
objectObsolete, unused.
Returns
- IDisposable
An IDisposable which can be used to cancel the binding.
GetBindingExpressionBase(AvaloniaObject, AvaloniaProperty)
Retrieves the BindingExpressionBase that is currently active on the specified property.
public static BindingExpressionBase? GetBindingExpressionBase(AvaloniaObject target, AvaloniaProperty property)
Parameters
target
AvaloniaObjectThe AvaloniaObject from which to retrieve the binding expression.
property
AvaloniaPropertyThe binding target property from which to retrieve the binding expression.
Returns
- BindingExpressionBase
The BindingExpressionBase object that is active on the given property or null if no binding expression is active on the given property.