Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

StringFormat formatting in xaml for currency

I am using the following code Binding Path=InvoiceAmount, StringFormat={}{0:C0}snippet and its working good, as i am not interested in the fraction part. It yields the result in this manner $12. But for sake of reading, can the currency format be like this $12.00 instead of above.

I mean any rounding-off code for decimal part or any hack for such situation

Thanks in advance

like image 759
Pankaj Upadhyay Avatar asked Apr 10 '11 13:04

Pankaj Upadhyay


1 Answers

Text="{Binding Price, StringFormat='c'}"
like image 175
Scott Nimrod Avatar answered Oct 16 '22 18:10

Scott Nimrod