ExpressionObserver.

SetValue(object, BindingPriority) Method

Summary

Attempts to set the value of a property expression.
Namespace
Avalonia.Data.Core
Containing Type
ExpressionObserver

Syntax

public bool SetValue(object value, BindingPriority priority = LocalValue)

Parameters

Name Type Description
value object The value to set.
priority BindingPriority The binding priority to use.

Return Value

Type Description
bool True if the value could be set; false if the expression does not evaluate to a property. Note that the ExpressionObserver must be subscribed to before setting the target value can work, as setting the value requires the expression to be evaluated.