[]
        
(Showing Draft Content)

C1.WPF.CustomConverter.Create

Create Method

Create(Func<object, Type, object, CultureInfo, object>)

Creates the specified converter function.

Declaration
public static IValueConverter Create(Func<object, Type, object, CultureInfo, object> converterFunction)
Parameters
Type Name Description
Func<object, Type, object, CultureInfo, object> converterFunction

The converter function. (value, type, parameter, culture)

Returns
Type Description
IValueConverter

The converted value

Examples
var converter = CustomConverter.Create((value, type, parameter, culture)=>
{
    return; //Put the converter code here
});

Create(Func<object, Type, object, CultureInfo, object>, Func<object, Type, object, CultureInfo, object>)

Creates the specified converter function.

Declaration
public static IValueConverter Create(Func<object, Type, object, CultureInfo, object> converterFunction, Func<object, Type, object, CultureInfo, object> converterBackFunction)
Parameters
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)

Returns
Type Description
IValueConverter

The converted value

Examples
var converter = CustomConverter.Create((value, type, parameter, culture)=>
{
    return; //Put the converter code here
});