title: c# - localization - changing language in wpf app
body: <p>I am making some wpf application and I need option for changing languages. I have folder named Resorces in my solution, where I store all my resx file - actually language.resx and language.en-EN.resx. My XAML looks like:</p>
  
  <pre><code>&lt;Window x:Class="CoinCatalogue.MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:local="clr-namespace:CoinCatalogue"
      xmlns:resx="clr-namespace:CoinCatalogue.Resources"
      mc:Ignorable="d"
      Title="{x:Static resx:language.WindowName}" Height="480" Width="640"&gt;
  &lt;Grid&gt;
      &lt;Menu x:Name="menu" HorizontalAlignment="Left" Height="auto" VerticalAlignment="Top" Width="517"&gt;
          &lt;MenuItem x:Name="File" Header="{x:Static resx:language.File}"&gt;
              &lt;MenuItem x:Name="Open" Header="{x:Static resx:language.Open}"/&gt;
          &lt;/MenuItem&gt;
      &lt;/Menu&gt;
  
  &lt;/Grid&gt;
  </code></pre>
  
  <p></p>
  
  <p>Everything is ok - I have access to string in app. And in my main class I am trying to change culture with line:</p>
  
  <pre><code>language.Culture = new System.Globalization.CultureInfo("en-EN");
  </code></pre>
  
  <p>But nothings happen to my app. This line is before  InitializeComponent();. </p>
  
  <p>What am I doing wrong? I am using Visual Studio 2015. /is it a good idea to change app language in this way?</p>