Table of Contents

Class AutoCompleteBox.BindingEvaluator<T>

Namespace
Avalonia.Controls
Assembly
Avalonia.Controls.dll

A framework element that permits a binding to be evaluated in a new data context leaf node.

public class AutoCompleteBox.BindingEvaluator<T> : Control, INotifyPropertyChanged, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, IStyleable, INamed, IInputElement, IDataTemplateHost, ISetterValue

Type Parameters

T

The type of dynamic binding to return.

Inheritance
AutoCompleteBox.BindingEvaluator<T>
Implements
Inherited Members
Extension Methods

Constructors

BindingEvaluator()

Initializes a new instance of the BindingEvaluator class.

public BindingEvaluator()

BindingEvaluator(IBinding?)

Initializes a new instance of the BindingEvaluator class, setting the initial binding to the provided parameter.

public BindingEvaluator(IBinding? binding)

Parameters

binding IBinding

The initial string value binding.

Fields

ValueProperty

Identifies the Value dependency property.

public static readonly StyledProperty<T> ValueProperty

Field Value

StyledProperty<T>

Properties

Value

Gets or sets the data item value.

public T Value { get; set; }

Property Value

T

ValueBinding

Gets or sets the value binding.

public IBinding? ValueBinding { get; set; }

Property Value

IBinding

Methods

ClearDataContext()

Clears the data context so that the control does not keep a reference to the last-looked up item.

public void ClearDataContext()

GetDynamicValue(object?)

Updates the data context of the framework element and returns the updated binding value.

public T GetDynamicValue(object? o)

Parameters

o object

The object to use as the data context.

Returns

T

Returns the evaluated T value of the bound dependency property.

GetDynamicValue(object, bool)

Updates the data context of the framework element and returns the updated binding value.

public T GetDynamicValue(object o, bool clearDataContext)

Parameters

o object

The object to use as the data context.

clearDataContext bool

If set to true, this parameter will clear the data context immediately after retrieving the value.

Returns

T

Returns the evaluated T value of the bound dependency property.