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, Func<Object, Type, Object, CultureInfo, Object> converterBackFunction ) |
Visual Basic |
---|
Public Shared Function Create ( _ converterFunction As Func(Of Object, Type, Object, CultureInfo, Object), _ converterBackFunction 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)
- converterBackFunction
- Type: System..::..Func<(Of <(<'Object, Type, Object, CultureInfo, Object>)>)>
The convert back function. (value, type, parameter, culture)
Return Value
The converted valueExamples
Copy CodeC#
var converter = CustomConverter.Create((value, type, parameter, culture)=> { return; //Put the converter code here }); |