<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
转载于:https://www.cnblogs.com/phnix/archive/2012/05/02/2479178.html