2016-09-30 35 views
0

我通過使用不同的資源文件在運行時更改了應用程序文化。但它不反映在顯示舊的數據網格中。 更改文化:如何在運行時爲DataGrid(本地化)更改應用程序文化?

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

如何在運行時更改文化時獲取通知?

任何人都建議其他方式來實現這一目標?

問候, 斯里尼瓦桑

回答

1

你必須改變它就像你做了

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

但不幸的是,你必須重新加載所有(本地化)控制得到它的工作。

看這個:WPF: How to change the CurrentUICulture at runtime

相關問題