运行时一个项目中存在多个资源文件 .resx

发布于 2024-12-22 21:04:02 字数 417 浏览 4 评论 0 原文

我正在使用 silver light 4,对于 XAML 文本块绑定,我想使用多个资源文件,但无法实现它。一个链接支持在运行时动态地不具有相同语言的多个资源文件的概念

http ://msdn.microsoft.com/en-us/magazine/gg650657.aspx[^]

绑定文本块

我使用以下代码使用 1 个资源文件

,其中 ResourceKey 是App.xaml 和 CNICNumberTextBlock 中定义的 key 是资源文件 App.xaml 中定义的名称

key 定义:

请帮助我在运行时使用多个资源文件

I am using silver light 4 and for XAML text blocks binding i want to use multiple resource file but unable to implement it. one link is supporting the concept of not having multiple resource file of same language at runtime dynamically

http://msdn.microsoft.com/en-us/magazine/gg650657.aspx[^]

i m using the following code for binding a text block using 1 resource file

where ResourceKey is the key defined at App.xaml and CNICNumberTextBlock is the name defined in resource file

App.xaml key defining:

Kindly help me to make use of multiple resource file at run time

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

落在眉间の轻吻 2024-12-29 21:04:02

我发现了一些可能对你有用的链接..

本地化 - Michael Snow

Jeff Prosise 博客

I have came across some links which might be useful to u..

Localisation - Michael Snow

Jeff Prosise Blog

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文