Creates the specified converter function.
Namespace:
C1.SilverlightAssembly: C1.Silverlight (in C1.Silverlight.dll)
Syntax
| C# |
|---|
public static IValueConverter Create( Func<Object, Type, Object, CultureInfo, Object> converterFunction ) |
| Visual Basic |
|---|
Public Shared Function Create ( _ converterFunction As Func(Of Object, Type, Object, CultureInfo, Object) _ ) As IValueConverter |
Parameters
- converterFunction
- Type: System..::..Func<(Of <(<'Object, Type, Object, CultureInfo, Object>)>)>
The converter function. (value, type, parameter, culture)
Return Value
The converted value
Examples
var converter = CustomConverter.Create((value, type, parameter, culture)=>
{
return; //Put the converter code here
}); |