- 积分
- 0
- 在线时间
- 43 小时
- 主题
- 1
- 注册时间
- 2016-6-24
- 帖子
- 24
- 最后登录
- 2020-6-4
- 帖子
- 24
- 软币
- 490
- 在线时间
- 43 小时
- 注册时间
- 2016-6-24
|
项目中需要开发一个 ActiveX,使用的 DevExpress WPF 组件开发的,但是汉化目前出了问题,
使用标准的汉化方法不起作用:
public class ActiveX : IActiveX, IObjectSafety
{
public ActiveX()
{
// Create a new object, representing the German culture.
CultureInfo culture = CultureInfo.CreateSpecificCulture("zh-Hans");
// The following line provides localization for the application's user interface.
Thread.CurrentThread.CurrentUICulture = culture;
// The following line provides localization for data formats.
Thread.CurrentThread.CurrentCulture = culture;
// Set this culture as the default culture for all threads in this application.
CultureInfo.DefaultThreadCurrentCulture = culture;
CultureInfo.DefaultThreadCurrentUICulture = culture;
MessageBox.Show(ApplicationThemeHelper.ApplicationThemeName);
ApplicationThemeHelper.UpdateApplicationThemeName();
}
public void OpenTemplateWord(string templateHeaderId)
{
MessageBox.Show(ApplicationThemeHelper.ApplicationThemeName);
DXWinWebTemplateText dxwinWebTemplateText = new DXWinWebTemplateText(templateHeaderId);
dxwinWebTemplateText.Show();
}
}
|
|