Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

thousand separator for integer in formatString

Tags:

c#

wpf

I want to show the numbers in text block with thousand separator in xaml but without floating point. how can i do it. i tried the following codes:

StringFormat={}{0:N}

it shows floating point.

StringFormat={}{0:000'.'000}}

it shows 1234 like 001,234 how can it do it?

like image 346
Mahmood Jenami Avatar asked Sep 08 '13 14:09

Mahmood Jenami


1 Answers

Use

{Binding StringFormat={}{0:N0}}

The good article about formatting in bindings.

like image 134
Hamlet Hakobyan Avatar answered Sep 21 '22 05:09

Hamlet Hakobyan