22 lines
686 B
C#
22 lines
686 B
C#
/*
|
|
* Copyright (c) 2025 LG Electronics Inc.
|
|
* SPDX-License-Identifier: LicenseRef-LGE-Proprietary
|
|
*/
|
|
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();
|
|
}
|
|
}
|
|
}
|