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.v24.2.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, Culture |
A delegate method that converts a value. |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
convert |
Func<TOut, Object, Culture |
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 |
---|---|
IValue |
An instance of an object that implements the IValue |
See Also