Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
235
Localization at runtime
posted

Hello,

I want to change the language of my application at runtime. It works so far, but when a control is already displayed, its text doesn't get translated when the language is changed dynamically.

I use the follow code to change the language:

System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("de-DE");

When I close the window and reopen it, the proper language text is shown. What do I have to do, to update the text on an already loaded control?

I use the XamDataGrid and the "group by area" is translated, but only when the control is not already loaded.