WPF Formatting a String as a Currency Using the โ‚ฌ Character

I have an application where I need to show the price, for this I have the following code:

<Label Content="{Binding Prijs}" ContentStringFormat="C"></Label>

However, this gives a string format, for example: $ 10.00, but I want to show the euro sign (โ‚ฌ) instead of the dollar sign ($). How to do it?

+5
source share
1 answer

You need to make sure that the control is Languageinstalled correctly.

Tim Heyer has a blog post entitled "StringFormat and CurrentCulture in Silverlight" about this for Silverlight, so I expect the same problem to occur in WPF.

Silverlight , :

this.Language = XmlLanguage.GetLanguage(Thread.CurrentThread.CurrentCulture.Name);

WPF , CurrentThread.CurrentCulture , .

+6

All Articles