[]
        
(Showing Draft Content)

C1.WPF.Schedule.WeekDaysToIntConverter

WeekDaysToIntConverter Class

Represents a Binding converter that converts a WeekDaysEnum value to integer representations.

Inheritance
WeekDaysToIntConverter
Implements
Namespace: C1.WPF.Schedule
Assembly: C1.WPF.Schedule.4.6.2.dll
Syntax
[ValueConversion(typeof(WeekDaysEnum), typeof(int))]
public class WeekDaysToIntConverter : IValueConverter
Remarks

If the WeekDaysEnum value represents a combination of several flags, this converter will throw away extra flags and return an integer value corresponding to the single flag value. Use this converter to receive a valid value of the selected index in comboboxes which use WeekDaysEnum flags as the data source.

Constructors

Name Description
WeekDaysToIntConverter()

Fields

Name Description
Default

Gets an instance of WeekDaysToIntConverter.

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.