To execute the code put the following code in the click event of the button
Storyboard anim = (Storyboard)rootElement.FindResource("mystoryboard");
anim.Begin(this);
This should work
To execute the code put the following code in the click event of the button
Storyboard anim = (Storyboard)rootElement.FindResource("mystoryboard");
anim.Begin(this);
This should work