太阳照大神

导航

Windows Phone ListBox 水平滚动的代码

<ListBox x:Name="imageListBox" ScrollViewer.HorizontalScrollBarVisibility="Visible">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal"></StackPanel>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>

<ListBoxItem Width="110">abc</ListBoxItem>
<ListBoxItem Width="110">abc</ListBoxItem>
<ListBoxItem Width="110">abc</ListBoxItem>
<ListBoxItem Width="110">abc</ListBoxItem>
<ListBoxItem Width="110">abc</ListBoxItem>
<ListBoxItem Width="110">abc</ListBoxItem>
<ListBoxItem Width="110">abc</ListBoxItem>
<ListBoxItem Width="110">abc</ListBoxItem>
</ListBox>

posted on 2012-02-09 22:02  太阳照大神  阅读(404)  评论(0编辑  收藏  举报