DelegateConverterFactory.CreateValueConverter<TIn, TOut>(Func<TIn, Object, CultureInfo, TOut>, Func<TOut, Object, CultureInfo, TIn>) Method
Creates an instance of an object that implements the IValueConverter interface.
Namespace: DevExpress.Mvvm.UI
Assembly: DevExpress.Xpf.Core.v25.1.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
public static IValueConverter CreateValueConverter<TIn, TOut>(
Func<TIn, object, CultureInfo, TOut> convert,
Func<TOut, object, CultureInfo, TIn> convertBack = null
)
Parameters
| Name | Type | Description |
|---|---|---|
| convert | Func<TIn, Object, CultureInfo, TOut> | A delegate method that converts a value. |
Optional Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| convertBack | Func<TOut, Object, CultureInfo, TIn> | null | A delegate method that converts a value back. |
Type Parameters
| Name | Description |
|---|---|
| TIn | The type of the value produced by the binding source. |
| TOut | The type of the value of the binding target. |
Returns
| Type | Description |
|---|---|
| IValueConverter | An instance of an object that implements the IValueConverter interface. |
See Also