19 public object Convert(
object value, Type targetType,
object parameter,
20 System.Globalization.CultureInfo culture)
22 TimeSpan valueTime = (TimeSpan)value;
23 if (valueTime == TimeSpan.MaxValue)
25 return string.Format(
"{0}:{1:00}:{2:00}.{3:000}", (
int)valueTime.TotalHours,
26 valueTime.Minutes, valueTime.Seconds, valueTime.Milliseconds);
37 public object ConvertBack(
object value, Type targetType,
object parameter,
38 System.Globalization.CultureInfo culture)
41 if (TimeSpan.TryParse((
string)value, out result))
Converter from TimeSpan to string representation HH:MM:SS.SSS
object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
Convert from TimeSpan to string representation HH:MM:SS.SSS
object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
Not implemented conversion from string to TimeSpan