menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SpeedToDurationConverter - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SpeedToDurationConverter

    This class implements conversion from System.Int32 type to System.Windows.Duration type.

    Inheritance
    System.Object
    SpeedToDurationConverter
    Implements
    System.Windows.Data.IMultiValueConverter
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Tools
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    public class SpeedToDurationConverter : 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.

    Implements

    System.Windows.Data.IMultiValueConverter
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved