<Window.Resources>
<x:ArrayExtension x:Key="OpenBtn_Res" Type="{x:Type System:String}">
<x:StaticExtension Member="prop:Resources.OpenToolName"/>
<System:String>\Image\Table_Open.png</System:String>
</x:ArrayExtension>
<x:ArrayExtension x:Key="AddBtn_Res" Type="{x:Type System:String}">
<x:StaticExtension Member="prop:Resources.AddToolName"/>
<System:String>\Image\Data_add.png</System:String>
</x:ArrayExtension>
<x:ArrayExtension x:Key="EditBtn_Res" Type="{x:Type System:String}">
<x:StaticExtension Member="prop:Resources.EditToolName"/>
<System:String>\Image\Data_edit.png</System:String>
</x:ArrayExtension>
<x:ArrayExtension x:Key="DeleteBtn_Res" Type="{x:Type System:String}">
<x:StaticExtension Member="prop:Resources.DelToolName"/>
<System:String>\Image\Data_delete.png</System:String>
</x:ArrayExtension>
</Window.Resources>
里面的汉字就是从资源文件中读出的 要利用staticextension