是的,它是可复制的,实际上,它在每个网格、位置或大小上都是可复制的。将实际高度添加到列表框时,滚动条将返回。
然而,真正的问题似乎来自黄色画布,它与列表框重叠。不管那是不是虫子,我不知道。去掉黄色的帆布,你就没事了。将行从
0
到
1
你也很好。但是,如上所述,当您为列表框指定特定高度时,滚动条也会返回:
<ListBox Grid.Row="0" Grid.RowSpan="2" Grid.Column="0" Height="100">
<ListBox.Items>
<TextBlock Text="Item 1"/>
<TextBlock Text="Item 2"/>
<TextBlock Text="Item 3"/>
<TextBlock Text="Item 4"/>
<TextBlock Text="Item 5"/>
<TextBlock Text="Item 6"/>
<TextBlock Text="Item 7"/>
<TextBlock Text="Item 8"/>
<TextBlock Text="Item 9"/>
<TextBlock Text="Item 10"/>
<TextBlock Text="Item 11"/>
<TextBlock Text="Item 12"/>
</ListBox.Items>
</ListBox>