Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Formatting indian rupees in wpf

Tags:

c#

wpf

I want to format the Indian rupees like mentioned below.

eg.87,15,725

eg.1,37,15,725

eg.47,624

StringFormat={}{0:#\,#}}" I was tried to set this property to TextBlcok, but I am value like

53,000,000.

I need to format the TextBlock as 5,30,00,000 Before Last 3 digits i want comma(,) what would be the StringFormat for the same.

like image 304
maddy7781 Avatar asked Jan 07 '23 11:01

maddy7781


1 Answers

You need to specify your culture code so it will look something like below:

TextBlock Text="{Binding Value, StringFormat=C, ConverterCulture=hi-IN}" 
like image 88
Cubicle.Jockey Avatar answered Jan 10 '23 12:01

Cubicle.Jockey