WPF / C#:从图片列表视图旋转? [英] WPF/C#: Images rotating from a listview?

查看:439
本文介绍了WPF / C#:从图片列表视图旋转?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想问你的意见/关于如何创建自定义列表视图中的旋转类似于电影WPF从数据库(更像是一个播放列表中)显示来自一个表来映像(如果这是一个很好的实现)的建议(水平移动 - 环路)

I just want ask for your comments/suggestions on how to create a customized listview (if that's a good implementation) in WPF that displays images coming from a table from a database (more like a playlist) that rotates similar to a film (moving horizontally - on loop)

任何想法?

推荐答案

如果您有图像的列表,你可以为每一个Image控件,放在一个水平的StackPanel每个图像控制,把StackPanel的一个Canvas中和动画Canvas的左财产(无论膜的大小),让图像翻滚。

If you have a list of Images, you can create an Image control for each one, put each Image control in a horizontal StackPanel, put the StackPanel inside a Canvas (of whatever size of the "film"), and animate the Left property of the Canvas to have the images roll.

当然,如果你需要的图像包裹(最后一个后第一个),你可以忘掉的StackPanel和单独移动每一个图像。

Of course, if you need that the images wrap (the first one after the last one), you could forget about the StackPanel and move each Image separately.

这篇关于WPF / C#:从图片列表视图旋转?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆