[]
        
(Showing Draft Content)

C1.WPF.Schedule.DateTimeInfoToStringConverter

DateTimeInfoToStringConverter Class

Represents a MultiValue binding converter that converts a DateTimeInfo object to one of its string representations.

Inheritance
DateTimeInfoToStringConverter
Namespace: C1.WPF.Schedule
Assembly: C1.WPF.Schedule.dll
Syntax
[ValueConversion(typeof(DateTimeInfo), typeof(string))]
public class DateTimeInfoToStringConverter : IMultiValueConverter
Remarks

DateTimeInfoToStringConverter is a one-way converter. It takes as a source a list of 3 values:

  • the DateTimeInfo object
  • the DateTime format specified string. The format specified definition rules are the same as used in the System.DateTime.ToString(format) method. This parameter is optional.
  • The CultureInfo object used for converting. This parameter is optional.

Constructors

Name Description
DateTimeInfoToStringConverter()

Fields

Name Description
Default

Gets an instance of DateTimeInfoToStringConverter.

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)

Does nothing.