[]
Represents a Binding converter that converts a WeekDaysEnum value to integer representations.
[ValueConversion(typeof(WeekDaysEnum), typeof(int))]
public class WeekDaysToIntConverter : IValueConverter
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.
| Name | Description |
|---|---|
| WeekDaysToIntConverter() |
| Name | Description |
|---|---|
| Default | Gets an instance of WeekDaysToIntConverter. |
| 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. |