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

Piy*_*iya 1 windows-phone-8

我正在开发简单的Windows手机应用程序.任何人都可以告诉我我们应该写什么代码从左到右滚动图像?如果所有图像都来自Facebook帐号

Jai*_*ind 5

列出所有Facebook图像并使用列表框控件显示来自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>
Run Code Online (Sandbox Code Playgroud)