using System; using System.Globalization; using System.Windows.Data; using VisionCommon; namespace VisionCommonUI { public class CoordUnitStringConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { eCoordUnit coordUnit = (eCoordUnit)value; return $"[{coordUnit.ToString().ToLower()}]"; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw new NotImplementedException(); } } }