我是WPF的新手,不知道这个问题是不是很奇怪.我想知道是否可以在textBlock中的文本周围添加边框.
编辑:
根据建议,我尝试了两种方法,但没有取得多大成功:
<Border BorderBrush="#FF0B232F" BorderThickness="2">
<TextBlock HorizontalAlignment="Left" Text="TextBlock" TextWrapping="Wrap" FontSize="36" FontWeight="Bold" Foreground="#FF88BCCD" OpacityMask="Black"/>
</Border>
Run Code Online (Sandbox Code Playgroud)
和
<Label BorderBrush="#FF0B232F" BorderThickness="2,2,2,2" Content="TextBlock" FontSize="36" FontWeight="Bold" Foreground="#FF88BCCD" />
Run Code Online (Sandbox Code Playgroud)
我在这里做错了吗?