You want to do something like this:
<TextBlock Text="foo bar">
<TextBlock.Background>
<SolidColorBrush Color="Azure" Opacity="0.5" />
</TextBlock.Background>
</TextBlock>
You want to do something like this:
<TextBlock Text="foo bar">
<TextBlock.Background>
<SolidColorBrush Color="Azure" Opacity="0.5" />
</TextBlock.Background>
</TextBlock>