title: WPF TextBox Binding Percentage
body: <p>I have to bind a TextBox to a % value. So I set the StringFormat Property on the Binding like this:</p>
  
  <pre><code>&lt;TextBox Text="{Binding Path=BewertungsFaktore.Gewinn, StringFormat=P2, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource TextBoxStyle}" HorizontalAlignment="Left"/&gt;
  </code></pre>
  
  <p>That seems to work quite fine. But if I edit the value there are issues.
  As example if I enter a value of 1 the textbox should format this in 1%.
  But the main problem is it formats into 100.00%.
  Another question is if I am using a German Sys do I have to enter ',' instaed of a '.'?</p>