开发者

How do I start animating applications in winforms? [closed]

开发者 https://www.devze.com 2023-02-13 07:23 出处:网络
It's difficult to tell what is being asked here. T开发者_Python百科his question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current for
It's difficult to tell what is being asked here. T开发者_Python百科his question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 9 years ago.

I would like to get some references or examples on how to animate my winform applications.

When I click on a button it should transform group of objects to small or big, move it's position, change the color, etc. I would also accept a library as an answer.


I have used dot-net-transitions and I have no issues with is so far. It contains 8 type of animations and basically allows you to animate any controls with them.

TransitionType_Linear is a linear animation with objects moving at a constant rate throughout the transition.

TransitionType_Acceleration starts the transition at zero velocity and builds up at a constant rate of acceleration to be at full-speed by the end of the transition.

TransitionType_Deceleration starts the transition at full-speed and decelerates at a constant rate to be at zero velocity by the end of the transition.

TransitionType_CriticalDamping is a declerating transition, using an exponentially decaying velocity. It is good (for example) for animating properties such as needles on dials.

TransitionType_EaseInEaseOut starts at zero velocity and accelerates until halfway through the transition, then decelerates back to zero velocity by the end of the transition.

TransitionType_Bounce accelerates to the destination value by halfway through the transition and then decelerates back to the original value by the end. This is similar to acclerating downwards with gravity and then bouncing back against gravity.

TransitionType_ThrowAndCatch is the counterpart of the Bounce transition above. It decelerates to the destination value by halfway through the transition and then acclerates back to the original value by the end.

TransitionType_Flash lets you specify a number of flashes and the time for each flash. Each flash animates the properties to their destination value and back again using an ease-in-ease-out transition.

They have a decent documentation on how you can implement the features, you can find it at http://code.google.com/p/dot-net-transitions/wiki/CodingWithTransitions

Also they have an .exe sample that basically shows all the animations so you know what to expect.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号