using Avalonia.Data.Converters; using System; using System.Globalization; namespace Project_Periodensystem.View.Converters { public class BoolToScaleXConverter : IValueConverter { public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture) => (value is bool b && b) ? -1 : 1; public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) => throw new NotSupportedException(); } }