read string from .resx file in C#

前端 未结 14 2264
一生所求
一生所求 2020-12-02 06:01

How to read the string from .resx file in c#? please send me guidelines . step by step

14条回答
  •  误落风尘
    2020-12-02 06:48

    The Simplest Way to get value from resource file. Add Resource file in the project. Now get the string where you want to add like in my case it was text block(SilverLight). No need to add any namespace also.Its working fine in my case

    txtStatus.Text = Constants.RefractionUpdateMessage;
    

    Constants is my resource file name in the project.

提交回复
热议问题