winforms - How can I localize DevExpress.XtraEditors.DateEdit without specifying CurrentCulture? - Stack Overflow

How can I localize DevExpress.XtraEditors.DateEdit without specifying CurrentCulture?Currently I know

How can I localize DevExpress.XtraEditors.DateEdit without specifying CurrentCulture?

Currently I know that I can localize it by specifying CurrentCulture, But it will cause the date format to change.

This is my code:

    public static void SetCurrentUICulture(string name)
    {
        if (string.IsNullOrEmpty(name))
        {
            name = "zh-CN";
        }
        
        Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(name);
        // Thread.CurrentThread.CurrentCulture = new CultureInfo(name);
  }

Is there any other way to do this?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744210325a4563301.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信