UserLogicalConverter.cs 482 B

123456789101112131415161718
  1. using Avalonia.Data.Converters;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Globalization;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace AvaloniaApplication2.Resources
  9. {
  10. internal class UserLogicalConverter : IMultiValueConverter
  11. {
  12. public object? Convert(IList<object?> values, Type targetType, object? parameter, CultureInfo culture)
  13. {
  14. return !(values[0].Equals(values[1]));
  15. }
  16. }
  17. }