Skip to main content

WithValue Method

Returns a new binding value with the specified value.

Definition​

Namespace: Avalonia.Data
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public BindingValue<T> WithValue(
T value
)

Parameters​

  T
The new value.

Return Value​

BindingValue(T)
The new binding value.

Exceptions​

InvalidOperationExceptionThe binding type is UnsetValue or DoNothing.

See Also​

Reference​

BindingValue(T) Structure
Avalonia.Data Namespace