Animate a Control

1
0

I want to animate some of my controls, (mostly the panels ) is there an animate class i can use?

  • You must to post comments
2
1

Hi Faith,

animating another control is pretty easy. See extended sample: http://wisej.s3.amazonaws.com/support/attachments/Animation2.zip

Here button4 launches animation of button5 on click. Simply define Animation for button5 as you did before.
You can leave the event empty. Then onClick of button4 call this:

this.animation1.GetAnimation(button5).Run();

Best regards
Frank

 

  • Faith Yintii
    Hi Thanks it worked perfect..
  • You must to post comments
2
1

Please note that you can also define custom animations in addition to the build in animations.
To add / modify a custom animation, click on the Animation Extender and then edit the CustomAnimations property collection editor.

custom

To use this custom animation definition, just type its name (myAnimation) in the Animation.Name property of your object:

use_custom

Best regards
Frank

Attachment
  • Faith Yintii
    Wow it worked … Nice, But do i get the animation to be triggered by the an event from another control… Say Button1 animation be triggered by the Click Event of say Button2? Thanks…
  • You must to post comments
2
1

Hi Faith,

yes, this is very easy with Wisej:

Just drop the Animation extender from the Tool palette to your container (page/window/desktop).
Then the container and all its children get a new property collection called Animotion:

property

Here you can setup various effects, duration and the event it is linked to.
I have put together a simple sample where the window fades in on creation and the buttons show 2 different effects when they are clicked.

You can download it here: http://wisej.s3.amazonaws.com/support/attachments/Animation.zip

Hope that helps.

Best regards
Frank

Attachment
  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.