You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

EnumToBooleanInverseConverter.cs 680 B

1 year ago
123456789101112131415161718192021222324
  1. using System;
  2. using System.Globalization;
  3. using System.Windows.Data;
  4. namespace BPA.UIControl.Converters
  5. {
  6. /// <summary>
  7. /// enum -> inverse bool
  8. /// </summary>
  9. public class EnumToBooleanInverseConverter : IValueConverter
  10. {
  11. /// <inheritdoc/>
  12. public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
  13. {
  14. return !EnumToBooleanConverter.ConvertEnumToBool(value, parameter);
  15. }
  16. /// <inheritdoc/>
  17. public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
  18. {
  19. throw new NotImplementedException();
  20. }
  21. }
  22. }