I have a very strange problem:
On my machine, DatePicker changes its watermark and date format to the language / culture that I want to set.
If I copy my application to other computers, do the following:
On some computer, it works the same as on my machine. On other computers, only the date format changes, but there is no watermark! Needless to say, it is very ugly to have a dumper, for example. German date but English watermark.
What is the reason for this behavior?
For i18n, I use the following code:
App.xaml.cs:
public partial class App : Application { public App() { CultureInfo ci = new CultureInfo("de-DE"); Thread.CurrentThread.CurrentCulture = ci; Thread.CurrentThread.CurrentUICulture = ci; } }
WindowMain.xaml.cs:
public partial class WindowMain : RibbonWindow { public WindowMain() { this.Language = XmlLanguage.GetLanguage("de-DE"); this.InitializeComponent(); } }
source share