New to Telerik UI for WPFStart a free 30-day trial

Represents converter that converts double to TimeSpan using the given parameter.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

C#
public class DoubleToTimeSpanConverter : IValueConverter

Inheritance: objectDoubleToTimeSpanConverter

Implements: IValueConverter

Constructors

C#
public DoubleToTimeSpanConverter()

Methods

Converts a double to TimeSpan using the given converter.

C#
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobject

Double value produced by the binding source.

targetTypeType

The type of the binding target property. This parameter is not used.

parameterobject

The converter parameter to use. This parameter is not used.

cultureCultureInfo

The culture to use in the converter. This parameter is not used.

Returns:

object

A converted TimeSpan value.

Converts a value.

C#
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobject

The value that is produced by the binding target.

targetTypeType

The type to convert to.

parameterobject

The converter parameter to use.

cultureCultureInfo

The culture to use in the converter.

Returns:

object

A converted value.

Remarks:

This method is not implemented. Throws NotImplementedException.