Skip to main content

Microsoft Silverlight

Answered Question start animationRSS Feed

(0)

mexican
mexican

Member

Member

164 points

713 Posts

start animation

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
tanmoy.r

Contributor

Contributor

3594 points

710 Posts

Re: start animation

 I am not getting what you exactly asking. Are you meaning the Loaded event?

Please Mark as Answer if this helps you.
Thanks n Regards
~Tanmoy
Blog: http://anothersilverlight.blogspot.com/

mexican
mexican

Member

Member

164 points

713 Posts

Re: start animation

 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.

tanmoy.r
tanmoy.r

Contributor

Contributor

3594 points

710 Posts

Answered Question

Re: Re: start animation

 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.

Please Mark as Answer if this helps you.
Thanks n Regards
~Tanmoy
Blog: http://anothersilverlight.blogspot.com/
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities