Represents a MultiBinding converter that converts an array of enum members to a
single enum value which is a bitwise combination of source enum values.
Namespace:
C1.WPF.C1ScheduleAssembly: C1.WPF.C1Schedule (in C1.WPF.C1Schedule.dll)
Syntax
C# |
---|
public class EnumFlagsToBoolArrayMultiConverter : IMultiValueConverter |
Visual Basic (Declaration) |
---|
Public Class EnumFlagsToBoolArrayMultiConverter _ Implements IMultiValueConverter |
Remarks
EnumFlagsToBoolArrayMultiConverter is a two-way converter.
A source is a list of Boolean values, a parameter value is a string representing
a list of enum member names separated by ',' or ';', and a target is an enum value
of the same type as members specified in the parameter. The number of elements
in the source list must be the same as the number of enum members listed in the converter parameter.
Source - Target behavior:
For each source list item having a True value, gets an enum member listed in the parameter at the same index and adds it to the target enum value via the "bitwise OR" operation.
Target - Source behavior:
Converts a target bitwise-ORed enum value to a source Boolean array. Each i-th array element will contain a True value if the source value contains a flag specified in the parameter at i-th position.