TimeSpanToDoubleConverter public class TimeSpanToDoubleConverter : IValueConverter Converts a TimeSpan to a Double value expressed in seconds. Documentation Code public TimeSpanToDoubleConverter() public object Convert(object value, Type targetType, object parameter, CultureInfo culture) Converts a TimeSpan to a Double value expressed in seconds. public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) Converts a Double (value should be in seconds) to a TimeSpan value.