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