public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { FlagsExtended setting = (FlagsExtended)Enum.Parse(typeof(FlagsExtended), parameter.ToString()); flags ^= setting; return flags; }
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { flags = (FlagsExtended)value; return ((FlagsExtended)Enum.Parse(typeof(FlagsExtended), parameter.ToString()) | flags) == flags; }