我有这个
<ListBox
ItemsSource="{Binding Students}"
SelectionMode="Extended"
Name="listStudents"
Height="430"
IsEnabled="{Binding CanUpdateNumber}">
</ListBox>
当 IsEnabled 为 true 并且列表框中的项目更多时,则存在垂直滚动条。当 IsEnabled 为假时,所有项目都被禁用(这是真的)并且滚动条关闭,因此无法看到列表框中的所有项目。
当 IsEnabled 为 false 时,如何使滚动条出现