You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
984 B
C#
36 lines
984 B
C#
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
|
|
{
|
|
/// <summary>
|
|
/// 货道信息列表,货道位置
|
|
/// </summary>
|
|
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();
|
|
}
|
|
}
|
|
}
|