title: Programmatically localize a Text property in a WP8 app
body: <p>As the title says, I'm trying to set (in the code) the Text property of a TextBlock to the right localized string in a Windows Phone 8 app.</p>
  
  <p>I've tried this:
  (VB)</p>
  
  <pre><code>statusValueTxt.Text = "{Binding Path=LocalizedResources.statusValueTxt_Charging,Source={StaticResource LocalizedStrings}}"
  </code></pre>
  
  <p>as I would use this code in the XAML, but it doesn't seem to work in the code.
  Thanks in advance for any help.</p>