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
30
CultureInfo is not changing the control language
posted

Every controls language is set to english.

Even trying the following code to set the language to german doesn't change anything.

Language = XmlLanguage.GetLanguage("de-DE");

CultureInfo culture = new CultureInfo("de-DE"); // Beispiel für deutsch (Deutschland)
Thread.CurrentThread.CurrentCulture = culture;
Thread.CurrentThread.CurrentUICulture = culture;

In the XamDataGrid you can see that the filter-options don't change.

At the bottom of the XamDateTimeEditor it says "Today". It's weird that it says Juni and not June at the top.

Parents
No Data
Reply
  • 2660
    Offline posted

    Hello Ludwig,

    Setting the CurrentCulture and CurrentUICulture properties as in the provided code-snippets should be working. I have tested this in a small sample app, which I am attaching below. An alternative approach would be to directly set the Language Property of the XamDataGrid to “de-DE”. The grid would be localized, as the German culture is among the supported ones.

    Please, do test this and let me know if you need any further assistance.

    Best regards,
    Bozhidara Pachilova
Children
No Data