[]
Creates the specified converter function.
public static IValueConverter Create(Func<object, Type, object, CultureInfo, object> converterFunction)
Type | Name | Description |
---|---|---|
Func<object, Type, object, CultureInfo, object> | converterFunction | The converter function. (value, type, parameter, culture) |
Type | Description |
---|---|
IValueConverter | The converted value |
var converter = CustomConverter.Create((value, type, parameter, culture)=>
{
return; //Put the converter code here
});
Creates the specified converter function.
public static IValueConverter Create(Func<object, Type, object, CultureInfo, object> converterFunction, Func<object, Type, object, CultureInfo, object> converterBackFunction)
Type | Name | Description |
---|---|---|
Func<object, Type, object, CultureInfo, object> | converterFunction | The converter function. (value, type, parameter, culture) |
Func<object, Type, object, CultureInfo, object> | converterBackFunction | The convert back function. (value, type, parameter, culture) |
Type | Description |
---|---|
IValueConverter | The converted value |
var converter = CustomConverter.Create((value, type, parameter, culture)=>
{
return; //Put the converter code here
});