我正在开发简单的Windows手机应用程序.任何人都可以告诉我我们应该写什么代码从左到右滚动图像?如果所有图像都来自Facebook帐号
列出所有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)
| 归档时间: |
|
| 查看次数: |
2473 次 |
| 最近记录: |