c# - How to use StringFormat in XAML? -
i want show text this: 10 reviews
this 1 works:
<textblock text="{binding reviews, stringformat='reviews {0}'}"/>
this 1 works error in xaml appears saying r unexpected @ position
<textblock text="{binding reviews, stringformat='{0} reviews'}"/>
try this:
<textblock text="{binding reviews, stringformat='{}{0} reviews'}"/>
Comments
Post a Comment