wpf - Concatenate string via XAML -
i have label inside progressbar
take it's value form progressbar
value , want add char %
after progressbar
value.
i have tried 2 options not working:
<label content="{binding progress}" contentstringformat="{}{0} %" /> <label content="{binding progress, stringformat={}{0}%}" />
use textblock
instead.
<progressbar value="50" name="prog" ... /> <textblock text="{binding path=value, elementname=prog, stringformat={}{0}%}"/>
Comments
Post a Comment