title: How to update windows on localization switch?
body: <p>When I switch the language (localization) it only affects newly created windows. How to update localized texts for currently opened windows? I mean, smart way, so let's say if I have textbox and button, and I already entered some data the localization switch should not affect it:</p>
  
  <p>[ 5 ___ ]  cancel</p>
  
  <p>--> switch to polish (for example)</p>
  
  <p>[ 5 ___ ]  anuluj</p>
  
  <h2>SOLVED</h2>
  
  <p>Thanks to article pointed out by Wouter Janssens - Xelos (thank you again) I was able to solve this. In case somebody reads several years later :-) those are the essential steps (read the mentioned article first):</p>
  
  <ol>
  <li>Add to your App.xaml ObjectDataProvider tag</li>
  <li>In App.xaml.cs add minimal provider wrapper -- getter of ObjectDataProvider from xaml and resource getter method</li>
  <li><p>In xamls refer to all your localized texts not via</p>
  
  <pre><code>"{x:Static loc:Resources.MyStringKey}" 
  </code></pre>
  
  <p>(where loc is Properties namespace of your project) but  </p>
  
  <pre><code>"{Binding Path=MyStringKey, Source={StaticResource CultureProvider}}" 
  </code></pre>
  
  <p>(where CultureProvider is the name of the ObjectDataProvider object created in step 1)</p></li>
  <li>On localization switch refresh the provider.</li>
  </ol>