ConvertedBindingExpression<TSource, TOwner, TValue, TTarget>

A converted one-way binding that can optionally define the reverse conversion.
public sealed class ConvertedBindingExpression<TSource, TOwner, TValue, TTarget> : BindingExpression<TTarget?> where TSource : class where TOwner : class?
Type parameterSummary
(class) TSourceThe root binding source type.
(class?) TOwnerThe object that owns the selected value.
TValueThe selected source value type.
TTargetThe value type presented to the control.

Methods

ConvertFrom

Converts control values back to source values before a source writer is selected.

public ConvertedTwoWayBindingBuilder<TSource, TOwner, TValue, TTarget> ConvertFrom(
  Func<TTarget?, TValue> convert)
ParameterSummary
Func<TTarget?, TValue> convertConverts nullable control values back to source values.

Returns