Table of Contents

Class BindingOperations

Namespace
Avalonia.Data
Assembly
Avalonia.Base.dll
public static class BindingOperations
Inheritance
BindingOperations
Inherited Members

Fields

DoNothing

public static readonly object DoNothing

Field Value

object

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 AvaloniaObject

The target object.

property AvaloniaProperty

The property to bind.

binding InstancedBinding

The 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 AvaloniaObject

The target object.

property AvaloniaProperty

The property to bind.

binding InstancedBinding

The instanced binding.

anchor object

Obsolete, 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 AvaloniaObject

The AvaloniaObject from which to retrieve the binding expression.

property AvaloniaProperty

The 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.