本地化在Silverlight 4中的自定义控件中不起作用 [英] Localization is not working in custom control in silverlight 4

查看:80
本文介绍了本地化在Silverlight 4中的自定义控件中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


在Silverlight中本地化自定义控件时遇到问题.
场景如下:

保留自定义控件的一个项目(silverlight 4).
通过使用资源文件,来自xaml/Static资源的绑定来本地化此控件.这些控件是从不同的项目加载的(这也是本地化的,可以正常使用).
但是控件的本地化无法正常工作.
我已经做了以下事情来找出问题:
-确认其获得正确的UI文化
-绑定似乎可以,因为英语(默认)可以正常运行
-资源构建操作-嵌入资源
-项目设置(SupportedCultures)设置为fi-FI


请回复我,这会让我发疯.

Hi,
Having problem to localize custom controls in silverlight.
Here goes the scenario:

One project (silverlight 4) where custom controls are kept.
This controls are localize by using resource files, bindings from xaml/Static resource. These controls are loaded from different projects (this is also localized and working ok).
But the localization of the controls are not working.
I have done the following things to find out the prob:
- Confirm it gets the correct UI Culture
- Binding seems ok as English (default) is working ok
- Resources Build Action - Embeded Resource
- Project Settings (SupportedCultures) is set to fi-FI


Please reply me, this drive me crazy.

推荐答案

尝试手动更改UI线程以指向fi-FI文化.
如果这有效,则说明您的设置正确.
Try changing the UI thread manually to point to the fi-FI culture.
If that works then you know that your settings are correct.


您有机会研究此问题.我做了同样的事情,但是没有用.请回复.
Did you get the chance to look into this issue. I did the same but it is not working. Please reply.


这篇关于本地化在Silverlight 4中的自定义控件中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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