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

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? -