您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

24 行
680 B

  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. }