This entry has been published on 2013-11-07 and may be out of date.
Last Updated on 2013-11-07.
Unfortunately, WPF does not apply certain localization settings automatically if the application is running e.g. on a german system. By default, the comma separator is an english “.” and not a “,”, etc.
According to this site, you can run either
this.Language = XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag);
in a single Window or Page to “refresh” to the current settings.
To apply the culture settings to your entire application, open App.xaml.cs (under App.xaml) and insert this code into the class:
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); FrameworkElement.LanguageProperty.OverrideMetadata(typeof(FrameworkElement), new FrameworkPropertyMetadata(System.Windows.Markup.XmlLanguage.GetLanguage(System.Globalization.CultureInfo.CurrentCulture.IetfLanguageTag))); }