using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using Avalonia.Data.Converters; namespace StabilityMatrix.Avalonia.Converters; public class ValueConverterGroup : List, IValueConverter { public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture) { return this.Aggregate(value, (current, converter) => converter.Convert(current, targetType, parameter, culture)); } public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) { throw new NotImplementedException(); } }