【问题标题】:How to change Application Culture at runtime for DataGrid(Localization)?如何在运行时更改 DataGrid(本地化)的应用程序文化?
【发布时间】:2016-09-30 06:52:36
【问题描述】:

我通过使用不同的资源文件在运行时更改了应用程序文化。但它没有反映在显示旧数据网格的数据网格中。 改变文化:

    System.Threading.Thread.CurrentThread.CurrentUICulture = 
new System.Globalization.CultureInfo("ar");

如何在运行时更改文化时获得通知?

有人提出其他方法来实现这一点吗?

问候, 斯里尼瓦桑

【问题讨论】:

    标签: wpf culture currentculture


    【解决方案1】:

    你必须像以前那样改变它

    System.Threading.Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("ar");
    

    但不幸的是,您必须重新加载所有(本地化)控件才能使其正常工作。

    看看这个:WPF: How to change the CurrentUICulture at runtime

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-22
      • 2011-04-03
      相关资源
      最近更新 更多