开发者

Why WPF ScrollViewer Language is tr but ContextMenu command texts are in English?

开发者 https://www.devze.com 2022-12-18 19:00 出处:网络
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 T开发者_如何学Goop\" vs. vs.

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 T开发者_如何学Goop" vs. vs. although my ScrollViwer Language is "tr-Tr" , Why Scrollviewer ContextMenu command texts are in English ?


you must do these 2 steps:

  1. Either run a Turkish Windows or install Turkish MUI onEnglish Windows

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. Modify your App.xaml.cs as:

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

}

Regards Kubilay

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号