1
大多数回答这个问题的滚动水平列表说做这样的事情:的Silverlight:如何创建图像
<ListBox Margin="47,241,53,264">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<Image Height="100" Width="100" Source="/ApplicationIcon.png"/>
<Image Height="100" Width="100" Source="/ApplicationIcon.png"/>
<Image Height="100" Width="100" Source="/ApplicationIcon.png"/>
<Image Height="100" Width="100" Source="/ApplicationIcon.png"/>
<Image Height="100" Width="100" Source="/ApplicationIcon.png"/>
</ListBox>
但是这不会使横向滚动。
谢谢!我需要将ScrollViewer.HorizontalScrollBarVisibility设置为“可见”而不是垂直的,但除此之外,这个技巧很好。抛开我的是,如果没有明确地设置这个列表框的水平滚动类型,有时候,如果你足够努力:/ –