DelegateConverterFactory.CreateMultiValueConverter<TIn1, TIn2, TOut>(Func<TIn1, TIn2, TOut>, Func<TOut, Tuple<TIn1, TIn2>>) Method

Creates an instance of object that implements the IMultiValueConverter interface.

Namespace: DevExpress.Mvvm.UI

Assembly: DevExpress.Xpf.Core.v20.2.dll

Declaration

public static IMultiValueConverter CreateMultiValueConverter<TIn1, TIn2, TOut>(
    Func<TIn1, TIn2, TOut> convert,
    Func<TOut, Tuple<TIn1, TIn2>> convertBack = null
)
Public Shared Function CreateMultiValueConverter(Of TIn1, TIn2, TOut)(
    convert As Func(Of TIn1, TIn2, TOut),
    convertBack As Func(Of TOut, Tuple(Of TIn1, TIn2)) = Nothing
) As IMultiValueConverter

Parameters

Name Type Description
convert Func<TIn1, TIn2, TOut>

A delegate method that converts a value.

Optional Parameters

Name Type Default Description
convertBack Func<TOut, Tuple<TIn1, TIn2>>

null

A delegate method that converts a value back.

Type Parameters

Name Description
TIn1

The type of the first value produced by the binding source.

TIn2

The type of the second value produced by the binding source.

TOut

The type of the value of the binding target.

Returns

Type Description
IMultiValueConverter

An instance of an object that implements the IMultiValueConverter interface.

See Also