设置 WPF 的全球化语言

https://stackoverflow.com/questions/7454024/setting-culture-en-in-globally-in-wpf-app

Thread.CurrentThread.CurrentCulture = new CultureInfo("en-IN");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-IN");
FrameworkElement.LanguageProperty.OverrideMetadata(typeof(FrameworkElement), new FrameworkPropertyMetadata(
            XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)));
posted @ 2019-07-25 17:48  不是豆豆  阅读(318)  评论(0编辑  收藏  举报
友情链接:迷途