I have this label inside ProgressBar
that take it's value form the Progressbar
value and i want to add the char %
after the ProgressBar
value.
I have tried two options that not working:
<Label Content="{Binding Progress}" ContentStringFormat="{}{0} %" />
<Label Content="{Binding Progress, StringFormat={}{0}%}" />
e.g. with ContentStringFormat:
<Label Content="{Binding Progress}" ContentStringFormat="{}{0} %" />
or you use Standard Numeric Format Specifier P
ContentStringFormat="{}{0:P}"
This all is very similar to String.Format
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With