其他分享
首页 > 其他分享> > 设置 WPF 的全球化语言

设置 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)));

标签:en,全球化,CultureInfo,CurrentThread,Thread,CurrentCulture,设置,new,WPF
来源: https://www.cnblogs.com/xwgli/p/11245837.html