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
Post a Comment