Skip to main content
Home Forums General Silverlight Getting Started start animation
3 replies. Latest Post by tanmoy.r on June 21, 2009.
(0)
mexican
Member
164 points
713 Posts
06-21-2009 6:43 AM |
to start my animation with a storyboard I need to click on the canvas.
initially there are 2 buttons to chose from so how do i capture the events on start-up and process them.
tanmoy.r
Contributor
3594 points
710 Posts
06-21-2009 7:12 AM |
I am not getting what you exactly asking. Are you meaning the Loaded event?
06-21-2009 7:18 AM |
what happens is that the SL app loads and you have a gid appreaing with canvas and 2 buttons. you have an option of either button animation1 or 2 then the grid dissapears and the animation begins.
06-21-2009 7:27 AM |
So u need one animation that will bring up the Grid,Canvas and Buttons into view.
So primarily set Opacity of those controls to 0. Then in the storyboard set their Opacity to 1 gradually.
Play this animation in this.Loaded event of the main page.
Now attatch events to two buttons and create animations for them where your canvas will be removed (Opacity 0) slowly. Play eah animation in appropriate click events of the buttons.