DelegateConverterFactory.CreateValueConverter(Func<Object, Type, Object, CultureInfo, Object>, Func<Object, Type, Object, CultureInfo, Object>) Method
In This Article
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(
Func<object, Type, object, CultureInfo, object> convert,
Func<object, Type, object, CultureInfo, object> convertBack = null
)
#Parameters
Name | Type | Description |
---|---|---|
convert | Func<Object, Type, Object, Culture |
A delegate method that converts a value. |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
convert |
Func<Object, Type, Object, Culture |
null | A delegate method that converts a value back. |
#Returns
Type | Description |
---|---|
IValue |
An instance of an object that implements the IValue |
See Also