[]
        
(Showing Draft Content)

C1.WPF.Schedule.TimeToStringConverter

TimeToStringConverter Class

Represents a Binding converter that converts a TimeSpan value to one of its string representations.

Inheritance
TimeToStringConverter
Implements
Namespace: C1.WPF.Schedule
Assembly: C1.WPF.Schedule.dll
Syntax
[ValueConversion(typeof(TimeSpan), typeof(string))]
public class TimeToStringConverter : IValueConverter
Remarks

TimeToStringConverter is a two-way converter. A source value must be a TimeSpan, and a target value is a string that represents the TimeSpan. Converter parameter should contain valid format string corresponding to format strings used in the ToString(string) method. If the converter parameter value is not specified, then the 'T' specifier is used.

Constructors

Name Description
TimeToStringConverter()

Fields

Name Description
Default

Gets an instance of TimeToStringConverter.

Methods

Name Description
Convert(object, Type, object, CultureInfo)

Converts a value. The data binding engine calls this method when it propagates a value from the binding source to the binding target.

ConvertBack(object, Type, object, CultureInfo)

Converts a value. The data binding engine calls this method when it propagates a value from the binding target to the binding source.