circle - WPF: 2 string.format in the same TextBlock? -


i have circle slider , inside slider put textblock shows slider value, use string.format present value in int instead of double:

<textblock text="{binding path=value, elementname=knobslider, stringformat={}{0:#,#}}" foreground="white"            fontfamily="trebuchet ms" fontsize="25" horizontalalignment="center"            verticalalignment="center" /> 

now want add before slider value specific character example '*', possible user string.format ?

no need stringformat - if you're trying add characters before value, need replace double curly braces text. think you're trying achieve:

<textblock horizontalalignment="center"         verticalalignment="center"         fontfamily="trebuchet ms"         fontsize="25"         foreground="white"         text="{binding path=value,                         elementname=knobslider,                         stringformat=\*{0:#,#}}" /> 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -