<ListBox Name="myListBx" ItemsSource="{Binding Collection}" Margin="5,5"
SelectedValuePath="ColId"
SelectedValue="{Binding Path=ColId}"
SelectionMode="Multiple"
BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}"
ScrollViewer.VerticalScrollBarVisibility ="Auto">
<ListBox.ItemTemplate>
<DataTemplate>
// blabla
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
我的ListBox包含很多元素,实际上应该会有滚动条,但是它甚至不可见。我做错了什么吗?
谢谢