Frage

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..

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top