Converters.cs 438 B

1234567891011121314
  1. using Avalonia.Data.Converters;
  2. using System.Linq;
  3. namespace VeloeMinecraftLauncher.Utils
  4. {
  5. public static class Converters
  6. {
  7. /// <summary>
  8. /// Gets list of bool values and conjuct them
  9. /// </summary>
  10. public static FuncMultiValueConverter<bool?, bool> BoolConjuctionConventer { get; } =
  11. new FuncMultiValueConverter<bool?, bool>(bools => !bools.Any(x => x is null or false));
  12. }
  13. }