Windows phone 8 如何在windows phone 8中水平滚动图像

Windows phone 8 如何在windows phone 8中水平滚动图像,windows-phone-8,Windows Phone 8,我正在开发简单的windows phone应用程序。有人能告诉我应该写什么代码来从左向右滚动图像吗?如果所有来自Facebook帐户的图片都从左向右滚动,您需要这样写: <ScrollViewer> <StackPanel Orientation="Horizontal"> .. put all your <Image Source="..." /> </StackPanel> </ScrollViewer>

我正在开发简单的windows phone应用程序。有人能告诉我应该写什么代码来从左向右滚动图像吗?如果所有来自Facebook帐户的图片都从左向右滚动,您需要这样写:

<ScrollViewer>
   <StackPanel Orientation="Horizontal">
      .. put all your <Image Source="..." />
   </StackPanel>
</ScrollViewer>

.. 全力以赴

若要从左向右滚动图像,您需要这样写:

<ScrollViewer>
   <StackPanel Orientation="Horizontal">
      .. put all your <Image Source="..." />
   </StackPanel>
</ScrollViewer>

.. 全力以赴

列出所有facebook图像,并使用listbox控件显示来自facebook的所有图像 对于从左向右滚动图像,请更改ListBox ItemsPanel属性

<ListBox
    Grid.Row="1" ScrollViewer.HorizontalScrollBarVisibility="Auto">
        <ListBox.ItemsPanel>
            <ItemsPanelTemplate>
                <StackPanel Orientation="Horizontal" />
            </ItemsPanelTemplate>
        </ListBox.ItemsPanel>
    <ListBox.ItemTemplate>
        <DataTemplate>
            <Image Source="{Binding FacebookImages}" Stretch = "Fill"/>
        </DataTemplate>
    </ListBox.ItemTemplate>
</ListBox>

列出所有facebook图像,并使用listbox控件显示来自facebook的所有图像 对于从左向右滚动图像,请更改ListBox ItemsPanel属性

<ListBox
    Grid.Row="1" ScrollViewer.HorizontalScrollBarVisibility="Auto">
        <ListBox.ItemsPanel>
            <ItemsPanelTemplate>
                <StackPanel Orientation="Horizontal" />
            </ItemsPanelTemplate>
        </ListBox.ItemsPanel>
    <ListBox.ItemTemplate>
        <DataTemplate>
            <Image Source="{Binding FacebookImages}" Stretch = "Fill"/>
        </DataTemplate>
    </ListBox.ItemTemplate>
</ListBox>


谢谢你,杰欣。。它起作用了。谢谢你,杰欣。。它起作用了。