title: XAML StringFormat syntax for decimal places
body: <p>I have a WPF screen and a TextBox field which should display a calculated percentage value (which is a double). The value is already correct i.e. it is 21 for 21% (therefore does not need to be multiplied by 100) but it has decimal places and I need to add the % symbol.</p>
  
  <p>I do not wish to round in the C# code as I lose my precision which is required in other calculations. I simply wish to use StringFormat in the XAML to put a format mask on the number. So 21.333 should be seen on screen as 21%.</p>
  
  <p>This is what works so far to truncate off the decimal places but no matter the configuration I try I cannot seem to add the % symbol as well.</p>
  
  <pre><code>Text="{Binding Brokerage, StringFormat='0,0.'}"
  </code></pre>
  
  <p>Your help is appreciated.</p>