日期:2014-05-20 浏览次数:21203 次
// Window1.xaml.cs
namespace WpfApplication1
{
public class DataConverter : IValueConverter
{
enum EnumValues { 经销 = 1, 营销 = 2, 生产 = 3 }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return (EnumValues)value;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}