سؤال

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