using Avalonia.Data.Converters; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Avalonia.Media.Imaging; using System.Collections.Concurrent; using System.Globalization; using System.IO; using System.Net.Http; namespace Valheim_Dashboard.Converters { public sealed class BoolToColSpanConverter : IValueConverter { public object Convert(object? value, Type targetType, object? parameter, System.Globalization.CultureInfo culture) => value is true ? 1 : 2; public object ConvertBack(object? value, Type targetType, object? parameter, System.Globalization.CultureInfo culture) => throw new NotSupportedException(); } }