using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Data; namespace Aucma.Core.OldBoxFoam.ConvertTo { /// /// 货道信息列表,货道位置 /// public class SpaceInfoLocalConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value == null) return DependencyProperty.UnsetValue; if (parameter is string stringValue && value is string cellValue) { return cellValue.Equals(stringValue); } return DependencyProperty.UnsetValue; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw new NotImplementedException(); } } }