c# - How to show a comma separated number with StringFormat in XAML? -


my code shows this: 43521 reviews, want this: 43,521 reviews. how can that? , there full reference possible formats in stringformat? couldn't find anything. thanks.

<textblock text="{binding reviews,stringformat='{}{0} reviews'}"/> 

just change string format this:

<textblock text="{binding reviews,stringformat='{}{0:0,0} reviews'}"/> 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -