Вопрос

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

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top