wpf - Combine text to String.Format -


i have stringformat stringformat={}{0:#,0}} represent decimal numbers , want add text of own after number.

this have tried (but not compile text inside stringformat)

content="{binding path=(my:myclass.mystaticproperty),stringformat={}{0:#,0}} text"  my:myclass.mystaticproperty integer type. 

as use label, content cannot formatted stringformat. please view this topic.

your solution use contentstringformat:

<label content="{binding source={x:static my:myclass.mystaticproperty}}"        contentstringformat="{}{0:#.0} text"/> 

Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -