次のように定義された TextBox があります。
<TextBox>
<TextBox.Background>
<VisualBrush>
<VisualBrush.Visual>
<StackPanel>
<TextBlock Background="Blue" Opacity="0.5" Text="155"/>
</StackPanel>
</VisualBrush.Visual>
</VisualBrush>
</TextBox.Background>
</TextBox>
次のようになります。

ただし、Backgroundプロパティを削除すると、テキストは次のように伸びます。

テキストの見た目を変えずに背景を追加する方法はありますか?