相关疑难解决方法(0)

从XAML中的*.resx文件中获取值

是否可以将资源文件中的某些值添加到XAML标记中?或者对于本地化,我们总是要在*.cs文件中制作这样的东西:

txtMessage.Text = Messages.WarningUserMessage;
Run Code Online (Sandbox Code Playgroud)

Messages资源在哪里,txtMessage是TextBlock.

c# xaml localization resx

66
推荐指数
4
解决办法
7万
查看次数

标签 统计

c# ×1

localization ×1

resx ×1

xaml ×1