BindingExpressionPathExtensions

Adds observable intermediate objects to typed binding paths.
public static class BindingExpressionPathExtensions

Methods

Path

Continues a binding through an observable reference and observes the returned property.

public static BindingExpression<TSource, TMiddle, TNext> Path<TSource, TOwner, TMiddle, TNext>(
  this BindingExpression<TSource, TOwner, TMiddle> expression,
  Func<TMiddle, TNext> next,
  string? path = null) where TSource : class where TOwner : class? where TMiddle : class?
ParameterSummary
BindingExpression<TSource, TOwner, TMiddle> expressionThe binding to continue.
Func<TMiddle, TNext> nextReads the next property from the current reference.
(optional) string? pathThe path lambda, captured automatically to derive its property name.
Type parameterSummary
(class) TSourceThe root binding source type.
(class?) TOwnerThe object that owns the current value.
(class?) TMiddleThe current reference type.
TNextThe property type returned by the next path segment.

Returns

  • BindingExpression<TSource, TMiddle, TNext>: A binding that observes the added path segment.