title: WPF XAML StringFormat: Culture Workaround broken in C# 4.0?
body: <p>The work around...</p>
  
  <pre><code>FrameworkElement.LanguageProperty.OverrideMetadata(
   typeof(FrameworkElement), 
   new FrameworkPropertyMetadata(
    XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)));
  </code></pre>
  
  <p>...used to work till now (mentioned here: <a href="https://stackoverflow.com/questions/520115/stringfomat-localization-problem/520334#520334">StringFormat Localization issues in wpf</a>).</p>
  
  <p>Instead till I ported my application from 3.5SP1 to 4.0, it was working. But now in 4.0 it stopped working again. Anybody experiencing this?</p>
  
  <p><strong>EDIT:</strong> It is now not even working in 3.5SP1. I think this has something to do with the installation of 4.0 as previously this was working.</p>
  
  <p>It is not working by either adding the workaround or removing it. I even tried adding...</p>
  
  <pre><code>CultureInfo.CurrentCulture.ClearCachedData();
  this.Language = XmlLanguage.GetLanguage( CultureInfo.CurrentCulture.IetfLanguageTag);
  </code></pre>
  
  <p>to <code>Window</code> constructor. This also didn't worked.</p>