我是在C#和WPF的窗口动画工作。在一个简单的两个窗口的应用程序中,我想要一个窗口来获取前一个窗口的坐标,当它被加载时,我希望将其height属性设置为从0到前一个窗口的高度。我已经搜索了许多帖子,比如矩形或图像的幻灯片效果,但我无法将它们应用于窗口。请告诉我窗口加载时的滑动高度。请张贴任何代码或项目链接,如果你有这件事的工作,提前感谢。
发布于 2012-08-29 14:43:52
你可以绕过DoubleAnimation
DoubleAnimation anim = new DoubleAnimation();
anim.From = 125; //Height of the container before animation
anim.To = 0; //Height of the container after animation
anim.SpeedRatio = 3;
mainWindow.BeginAnimation(Window.HeightProperty, anim);https://stackoverflow.com/questions/9276929
复制相似问题