In my application I am dealing with monetary value, yet being precise to the cent suffices. Hence I decided to store all amounts as integers in cents. But when I bind a value to Xaml, I'd like to see the value in dollars, using something like
<TextBlock Text="{Binding Product.Price, StringFormat={}{***}}"/> where *** should be replaced by something appropriate. I read through the documentation http://msdn.microsoft.com/en-us/library/vstudio/0c899ak8(v=vs.100).aspx
where there are examples of dividing by 1000 (using ','), multiplying by 100 (using '%') etc. Is there a way to do custom scaling (like divide by 100) in StringFormat, or does one really have to write a custom value converter?