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