I have the following animation defined in the code:
DoubleAnimation dbAscending = new DoubleAnimation(0, 15, new Duration(TimeSpan.FromMilliseconds(300))); (myImage.RenderTransform as RotateTransform).BeginAnimation(RotateTransform.AngleProperty, dbAscending);
This works great, when it starts, it rotates myImage by 15 degrees. Now I just need to create a new Storyboard and add animation to it, because I need to use its Completed event. I have a little problem with this, I noticed that I can add animation to Storyboard.Children , but I was not able to define the object and property to which I want to apply this animation to ...
Thanks in advance for any help, so far I have created storyboards only in XAML ...
source share