WPF:如何使 ItemsControl 居中并为其设置动画?
我想使用 ItemsControl ,其行为有点像轮播:
我希望所有都是文本的项目都圈起来以便所选项目始终居中且最大。我不应该是 3D,因为我喜欢未选择的项目不重叠并且仍然可读的事实。我看到的大多数轮播实现给人的印象是对于这种情况来说过于重量级,或者仅在图片上看起来不错。
我感觉这应该可以仅通过一些故事板来实现,但似乎我对 WPF 的了解还不够深入,无法正确完成它。
我希望你能为我指出正确的方向。
感谢您的帮助。
I'd like to use an ItemsControl which behaves somewhat carousel-like:
I want the items which are all text to circle so that the selected item is always centered and the biggest. I should not be 3D since I like the fact that the unselected items don't overlap and are still readable. Most carousel implementations I saw made the impression to be too heavyweight for this scenario or to look good only with pictures.
I have the feeling this should be doable with some storyboards alone but it seems I'm not far enough into the WPF to get it done properly.
I hope you can point me in the right direction.
Thanks for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个博客文章很好地描述了如何实现这一点
This blog post has a good description of how you can implement this