I was wondering something, and couldn\'t find any relevant topics. I have following binding :
Content=\"{x:Static resx:Resource.Form_OtherOption_Description}\"
<
If you're using WPF 4.0, you could also do this:
<TextBlock>
<Run Text="{Binding SomeLabel}"/>
<Run Text=":"/>
</TextBlock>
This actually concatenates the two strings coming from two Run
tag and copied into TextBlock.Text
property!.
Using this approach you can even bind to different properties in presenter, and display it in a single TexBlock
. See this excellent example:
Can we concat two properties in data binding?