I have a TextBlock with MultiBinding in the Text property, and StringFormat to concatenate the two results with some additions.
<TextBlock.Text>
<MultiBinding StringFormat="{}{0} {1}" >
<Binding Path="Version" />
<Binding Path="OldVersion" StringFormat="{}'({0})'" TargetNullValue=""/>
</MultiBinding>
</TextBlock.Text>
The first StringFormat works as expected, but the second isn't applied: it returns the value without parentheses. I don't want the parentheses in the first StringFormat, because sometimes the second value is Nothing. Thanks in advance.
<MultiBinding StringFormat="{}{0} ({1})" >- Sten Petrov