Silverlight 4/C#: I have a label showing a number formatted in the Currency (with 2 decimal places) of the thread culture, e.g.
25 shows as $25.00 and 25.01 shows as $25.01
I use "StringFormat=C2" for this. My problem is... I only want to show the 2 decimal places IF there are decimal places. e.g.
25 should show as $25 and 25.01 should show as $25.01
With a normal number I would use # - eg. #.## and that supresses the decimals if they don't exist, but then I don't get the Currency symbol. C2.## does not work.
Any suggestions please? (Hardcoding currency symbol is not an option)