Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 本地化DataGrid的自动生成列_C#_Wpf - Fatal编程技术网

C# 本地化DataGrid的自动生成列

C# 本地化DataGrid的自动生成列,c#,wpf,C#,Wpf,有没有办法本地化DataGrid创建的自动生成列? 如果我尝试使用 [DisplayName(Properties.Resources.UnitsLabel)]属性我得到一个编译时错误,表示属性值必须是编译时常量

有没有办法本地化DataGrid创建的自动生成列? 如果我尝试使用

[DisplayName(Properties.Resources.UnitsLabel)]
属性我得到一个编译时错误,表示属性值必须是编译时常量