using System.Globalization; using System.Windows; using System.Windows.Data; namespace Livia.Views.Converters; [ValueConversion(typeof(bool), typeof(string))] public class RoiTwoColumnModeToStringConverter : IValueConverter { public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture) { return Application.Current.TryFindResource($"RoiTwoColumnMode{value}"); } public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) { throw new NotSupportedException(); } }