Domanda

Hi I am using a bar chart in silverlight in my application to show the total bill amount(Y axis) per month(on x axis), I am able to display that if i display amount as a number but I want to show it with a $ preceeding the amount value..any help is appreciated .thanks..

È stato utile?

Soluzione

You can use StringFormat in the binding. Say:

<... Value="{Binding Value, StringFormat='C'}" ... />

This will format the number as currency, and will be culture sensitive, too.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top