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)

      new FrameworkPropertyMetadata(System.Windows.Markup.XmlLanguage.GetLanguage(System.Globalization.CultureInfo.CurrentCulture.IetfLanguageTag)));
  [email protected]