如何添加动画,windows窗体元素呢? [英] How to add animations to windows forms elements?

查看:328
本文介绍了如何添加动画,windows窗体元素呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从Silverlight的环境产品,创建动画面板是痛苦容易 - 我只是把我所有的控件在画布上,并增加在XAML以下行

Coming from Silverlight environment, creating animated panels is painfully easy - I just put all my controls on a canvas, and added the following lines in XAML

            <Storyboard x:Name="canvasRight" 
                        Completed="canvasRight_Completed">
                <DoubleAnimation From="0" To="500" 
                                 Duration="0:0:0.6" 
                                 Storyboard.TargetName="aboutCanvas" 
                                 Storyboard.TargetProperty="(Canvas.Left)">

                    <DoubleAnimation.EasingFunction>
                        <QuinticEase EasingMode="EaseIn"/>
                    </DoubleAnimation.EasingFunction>

                </DoubleAnimation>
            </Storyboard>

现在,每当用户在关于按钮,点击某个地方,有一些图像和链接到我的网页画布只是很好地从右侧滑出。现在很明显,我知道这不是那么容易做的一个窗体应用程序的时候,但我看不出有什么办法做到这一点的。从我收集到的帆布相当于是一个面板,其上我已经把一些控制。我可以使面板可见或不可见的,但我想同样的滑出效果添加到它。有没有办法这样做呢?

Now whenever the user clicked on a "About" button somewhere, the canvas with some images and links to my webpage just nicely slid out from the right. Now obviously I know this isn't that easy when doing a Forms application, but I fail to see any way to do it at all. From what I've gathered the canvas equivalent is a Panel, on which I've put some controls. I can make the panel visible or invisible, but I would like to add the same kind of "slide out" effect to it. Is there any way to do so?

推荐答案

我已经使用这个API,它简单而完整的单证,请 HTTP://$c$c.google.com/p /点净转换/维基/ CodingWithTransitions

I have used this APi, its simple and complete documentations is available at http://code.google.com/p/dot-net-transitions/wiki/CodingWithTransitions

这篇关于如何添加动画,windows窗体元素呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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