Class SpeedToDurationConverter
This class implements conversion from System.Int32 type to System.Windows.Duration type.
Inheritance
Implements
Namespace: Syncfusion.Windows.Tools
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class SpeedToDurationConverter : Object, IMultiValueConverter
Remarks
Calculate optimal System.Windows.Duration for current control height.
Constructors
SpeedToDurationConverter()
Declaration
public SpeedToDurationConverter()
Methods
Convert(Object[], Type, Object, CultureInfo)
This method converts speed value to duration value.
Declaration
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object[] | values | Contains speed and the value of the height. |
System.Type | targetType | The type in which the value should be converted. |
System.Object | parameter | Contains name control part for painting out. |
System.Globalization.CultureInfo | culture | The culture for given converting. |
Returns
Type | Description |
---|---|
System.Object | Duration of expanded/collapsed item. |
ConvertBack(Object, Type[], Object, CultureInfo)
Converts a binding target value to the source binding values.
Declaration
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value that the binding target produces. |
System.Type[] | targetTypes | The array of types to convert to. The array length indicates the number and types of values that are suggested for the method to return. |
System.Object | parameter | The converter parameter to use. |
System.Globalization.CultureInfo | culture | The culture to use in the converter. |
Returns
Type | Description |
---|---|
System.Object[] | An array of values that have been converted from the target value back to the source values. |