title: Dynamically switch between languages using resx
body: <p>I made my test project as per </p>
  
  <p><a href="https://stackoverflow.com/questions/17398833/how-i-dynamically-switch-between-different-language-resource-files">How I dynamically switch between different language resource files?</a></p>
  
  <p>I am unable to see the language change at runtime. I am sharing my codes and attempts here.</p>
  
  <p>xaml file</p>
  
  <pre><code>    &lt;MenuItem Header="{x:Static Resources:Resources.File}" VerticalAlignment="Center"&gt; &lt;!-- MenuFile--&gt;
              &lt;MenuItem Header="{x:Static Resources:Resources.New}"/&gt;
              &lt;MenuItem Header="{x:Static Resources:Resources.Open}"/&gt;
              &lt;MenuItem Header="{x:Static Resources:Resources.Close}"/&gt;
          &lt;/MenuItem&gt;
  
  
     private void English_Click(object sender, RoutedEventArgs e)
      {
          ChangeCulture("en-US");
      }
  
      private void German_Click(object sender, RoutedEventArgs e)
      {
          ChangeCulture("de-DE");
      }
  
      private void French_Click(object sender, RoutedEventArgs e)
      {
          ChangeCulture("fr-FR");
      }
  
      private void Chineese_Click(object sender, RoutedEventArgs e)
      {
          ChangeCulture("zh-CN");
      }
  
      public void ChangeCulture(string text)
      {
         Thread.CurrentThread.CurrentUICulture = new CultureInfo(text);
         Thread.CurrentThread.CurrentCulture = new CultureInfo(text);
         Properties.Resources.Culture = new CultureInfo(text);
      }
  </code></pre>
  
  <p>The resource files that I created are of names Resources.de-DE.resx, Resources.fr-FR.Resx, Resources.zh-CN.resx and Resources.resx (Which contains default english localization)</p>
  
  <p>Please guide, as to how to edit the xaml UI controls to switch text when respective language selection changes</p>