Represents a Binding converter that converts a WeekDaysEnum value to integer
representations.
Namespace:
C1.WPF.C1ScheduleAssembly: C1.WPF.C1Schedule (in C1.WPF.C1Schedule.dll)
Syntax
| C# |
|---|
[ValueConversionAttribute(typeof(WeekDaysEnum), typeof(int))] public class WeekDaysToIntConverter : IValueConverter |
| Visual Basic (Declaration) |
|---|
<ValueConversionAttribute(GetType(WeekDaysEnum), GetType(Integer))> _ Public Class WeekDaysToIntConverter _ Implements 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.