I'm trying to bind two <Run>
s inside a TextBlock
as shown in the snippet below. But I'm getting an XamlParseException
.
Basically I'm trying to achieve this format:
CodeNum: LongDescription
If the below code is doomed to fail what other alternatives do I have?
<TextBlock>
<Run FontWeight="Bold" Text="{Binding CodeNum}"/>
<Run FontWeight="Bold" Text=": "/>
<Run Text="{Binding LongDescription}"/>
</TextBlock>
Run
element is one way only. Correct me if I'm wrong. – Renick