且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从ResourceDictionary中提取和访问格式化文本

更新时间:2023-02-19 11:34:58

可能在.resx文件中存储资源会更好。这是最简单的方法:

通过resx文件添加本地化。它确实适用于简单的字符串。我唯一没检查的是转义的xml标签是否有效。
maybe storing resources in .resx files will work better. Here is a simplest way to do that:
add localization via resx files. It works for sure for simple strings. The only thing I didn''t check is whether escaped xml tags work.