In XAML, it is easy enough to use StringFormat='$#,0;$-#,0;Nil'
to make a bound integer variable display as a nicely formatted dollar amount. e.g., 1024
would come out as '$1,024'.
I have a need to deal with numbers ranging from a few cents up to a few hundred dollars - so 0.45
should display as '$0.45', but anything greater than some threshold (1? 9.99?) should display as a whole dollar amount. E.g. 12.73
should display as '$13'.
Before I go ahead and roll some moderately messy and specific code, does anyone have a nice clever way to do this? Ideally, it would all be in the StringFormat :)