wpf - Is it possible to add more characters after a binding in xaml? -


i wondering something, , couldn't find relevant topics. have following binding :

content="{x:static resx:resource.form_otheroption_description}" 

this place string in label. asking myself if can add ":" after binding, not in code, in xaml. label represent "name :". adding ":" part of binding not option.

edit

i'm working in 3.5 version

any suggestions.

thanks in advance.

you accomplish like:

<textblock text="{binding source={x:static resx:resource.form_otheroption_description},                          stringformat={}{0}:}" /> 

edit: <label>s content property not respect stringformat property of binding apparently. i've found has been moved contentstringformat property on <label>.

<label content="{x:static resx:resource.form_otheroption_description}"        contentstringformat="{}{0}:" /> 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -