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 @ 2012-06-24 22:09  therockthe  阅读(120)  评论(0编辑  收藏  举报