布局之间的项目WPF动画? [英] WPF animation of items between layouts?

查看:86
本文介绍了布局之间的项目WPF动画?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个WPF应用程序中显示项目的两种不同方式。第一种使用一个WrapPanel和第二垂直的StackPanel。我可以通过切换两种类型的主机面板显示我的项目的两种方式之间进行切换。这并不工作,但你得到的布局实例的变化。

I have two different ways of displaying items in a WPF application. The first uses a WrapPanel and the second a vertical StackPanel. I can switch between the two ways of displaying my items by switching the host panel between the two types. This does work but you get an instance change in layout.

相反,我希望孩子的项目到两个布局之间的动画给用户一个很好的平滑效果。任何想法我怎么可能去实现呢?我需要一个帆布代替手动锻炼孩子的定位是什么?这是一个真正的痛!

Instead I want the child items to animate between the two layouts to give a nice smooth effect to the user. Any ideas how I could go about achieving that? Do I need to a Canvas instead and work out the positioning of children manually? That would be a real pain!

推荐答案

有来自IdentityMine的的 Blendables布局也读博士WPF关于$ C $的CProject文章有关的概念性儿童

Have a look at the SwitchPanel from IdentityMine's Blendables Layout and also read Dr WPF's article on CodeProject about Conceptual Children

这篇关于布局之间的项目WPF动画?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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