WPF Multiple Enum Flags to Converter Parameter?
问题 I have a control which I need visible if an enum value is (A | B | C). I know how to bind the visibility of a control to a SINGLE enum (A) using a converter. How do I go about doing the same for this case? What would go in the parameter? This is the converter I use : public class EnumToVisibilityConverter : IValueConverter { public object Convert( object value, Type targetType, object parameter, System.Globalization.CultureInfo culture ) { if ( value == null || parameter == null || !( value