问题
How to set the orientation of the List box in Silverlight i.e how to display the data horizontally?
回答1:
Modify the ItemsPanel of the ListBox and set it to a StackPanel that's oriented Horizontally:
<ListBox>
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
来源:https://stackoverflow.com/questions/1165236/silverlight-3-list-box