Bindable<T>

A control property that takes either a literal or a Bind(...) expression.
public readonly struct Bindable<T>
Type parameterSummary
TThe underlying data type of the property.

Constructors

Wraps a literal value. Needed for interface-typed properties.

public Bindable(
  T? value)
ParameterSummary
T? valueThe literal value to encapsulate.

Properties

Value

The literal value, or the last value a binding produced.

Type: T?

public T? Value { get; }

Operators

Implicit Bindable<T>(BindingExpression<T?>)

Creates a bindable container from an active binding expression.

public static implicit operator Bindable<T>(
  BindingExpression<T?> expression)
ParameterSummary
BindingExpression<T?> expressionThe evaluation rule for the property.

Returns

  • Bindable<T>: The wrapped binding expression.

Implicit Bindable<T>(T)

Creates a bindable container from a constant value.

public static implicit operator Bindable<T>(
  T value)
ParameterSummary
T valueThe raw value to wrap.

Returns