如何在 Windows Phone 7 上本地化 ToggleSwitch(本地化 Silverlight Toolkit)? [英] How to localize ToggleSwitch on Windows Phone 7 (localizing Silverlight Toolkit)?

查看:28
本文介绍了如何在 Windows Phone 7 上本地化 ToggleSwitch(本地化 Silverlight Toolkit)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Silverlight Toolkit 有一个名为 Resources.resx 的资源文件,其中包含开关的On"和Off"字符串状态.但是,当我添加了相应的本地化资源 Resources.ru-RU.resx 时,本地化并没有选择它(尽管类似的方法适用于我自己的资源).

Silverlight Toolkit has a resource file named Resources.resx, which contains "On" and "Off" string states for the switch. But when I have added a corresponding localized resource, Resources.ru-RU.resx, it wasn't picked up by the localization (though the similar approach works for my own resources).

一种方法是为 ToggleSwitch 内容创建我自己的绑定,但我希望有一个非编码解决方案.可能吗?

One way to do it is to create my own binding for the ToggleSwitch Content, but I was hoping for a non-coding solution. Possible?

推荐答案

您需要为您的资源文件命名 ControlResources.ru-RU.resx ,请参阅 Andrej Torzen 关于该主题的文章.

You need to name your resource file ControlResources.ru-RU.resx , see Andrej Torzen's article on the subject.

这篇关于如何在 Windows Phone 7 上本地化 ToggleSwitch(本地化 Silverlight Toolkit)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆