为什么WPF ScrollViewer语言是tr但ContextMenu命令文本是英文? [英] Why WPF ScrollViewer Language is tr but ContextMenu command texts are in English?

查看:87
本文介绍了为什么WPF ScrollViewer语言是tr但ContextMenu命令文本是英文?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在WPF中有一个ScrollViewer.当我右键单击以滚动控件时,上下文菜单将打开并编写类似在此处滚动",在顶部滚动" vs. vs.的命令. 尽管我的ScrollViwer语言是"tr-Tr",但为什么Scrollviewer ContextMenu命令文本为英文?

I have a ScrollViewer in WPF. when I make right click to scroll control, context menu is opening and write commands like "Scroll Here, "Scroll Top" vs. vs. although my ScrollViwer Language is "tr-Tr" , Why Scrollviewer ContextMenu command texts are in English ?

推荐答案

您必须执行以下两个步骤:

you must do these 2 steps:

  1. 运行土耳其语Windows或在英语Windows上安装土耳其语MUI

更新:实际上,您需要安装.NET FW土耳其语Languaga Pack.在Windows Vista或Win7中,您只需要安装MUI.对于WinXP,请从

UPDATE: Actually you need .NET FW Turkish Languaga Pack installed. In Windows Vista or Win7 you just need to to install MUI. For WinXP install .NET FW Turkish Languaga Pack from http://www.microsoft.com/downloads/details.aspx?familyid=41C61D2A-D411-4DDE-9013-BB08EB688BB6&displaylang=en

  1. 将您的App.xaml.cs修改为:

公共局部类App:应用程序 { 静态App() { System.Threading.Thread.CurrentThread.CurrentUICulture =新的CultureInfo("tr-TR");
}

public partial class App : Application { static App() { System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("tr-TR");
}

}

问候 库比莱

这篇关于为什么WPF ScrollViewer语言是tr但ContextMenu命令文本是英文?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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