locked
How to set animation on child element of canvas RRS feed

  • Question

  • Hello All,

    How i perform animation on child element of canvas.

        I have one canvas in which i loaded different files on click of button .

       Suppose initially in my canvas Ellipse.xaml is loaded and when i clicked on button, rectangle.xaml is load, but before loading  of rectangle.xaml i want to perform some Double animation on Ellipse.xaml controls .

    (Note. In my Ellipse.Xaml file have one Ellipse Control and Rectangle .Xaml have Rectangle Control .)

        I write storyboard on each control of a file also.

       How i  do this, if any one have code please let me know it.

      

       Thanks

    Monday, March 5, 2007 5:55 AM

Answers

  • Assuming you're loading the Ellipse.xaml into the root of the main canvas, then you can start the animation just like any other animation. Assuming your storyboard is named stb1 your code would look like:

    sender.findName("stb1").begin();

     

    Monday, March 5, 2007 6:27 PM