<TextBlock>
<Run Text="{Binding Percentage}"/>
<Run Text="%"/>
</TextBlock>
I know this seems like a trivial question but I was wondering in the above code if Percentage value was 95 then it displays 95 % and not 95%. That is there is a space between the Run which I don't want. How to remove this.
Thanks in advance.
Try writing them in the same line. e.g.
<TextBlock>
<Run Text="{Binding Percentage}"/><Run Text="%"/>
</TextBlock>
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