zoukankan      html  css  js  c++  java
  • 如何在XAML里面 使用Resoures.resx 里面定义的值

    <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>

    image

    里面的汉字就是从资源文件中读出的 要利用staticextension

  • 相关阅读:
    题解 CF700E Cool Slogans
    题解 LOJ2065 「SDOI2016」模式字符串
    以guest账号无密码访问设置
    共享
    计算机的C$共享在哪里
    网卡工作原理
    iperf网络测试
    Jmeter安装与使用(压测)
    压测工具使用(vegeta)
    Alertmanager 安装(k8s报警)
  • 原文地址:https://www.cnblogs.com/aoldman/p/2777176.html
Copyright © 2011-2022 走看看