我有 WPF 应用程序,在我的 WPF 表单之一中有 TextBlock。我在 ScrollViewer 中放置了 TextBlock 以提供滚动功能。我想要 TextBlock 上的边框,所以我在XAML.
<ScrollViewer Margin="230,32,12,147">
    <Border BorderThickness="1" BorderBrush="Black">
          <TextBlock Name="textBlock1"></TextBlock>
      </Border>
 </ScrollViewer>
滚动条 GUI 显示如下。

向下滚动到 TextBlock 时显示底部边框。用户体验不适合这种设计。所以,我尝试了下面的代码,但没有显示边框。
<Border BorderThickness="1" BorderBrush="Black">
    <ScrollViewer Margin="230,32,12,147">
          <TextBlock Name="textBlock1"></TextBlock>
     </ScrollViewer>
 </Border>
TextBlock 放置在 ScrollViewer 中时如何显示边框?

