Hello,
I'm trying to learn magic of animation at WPF and found this problem:
Let's see we have image like this: "^"
To rotate it around point (x, y) I'm using this code:
RotateTransform rt = new RotateTransform();
DoubleAnimation da = new DoubleAnimation();
da.From = 0;
da.To = 360;
da.Duration = new Duration(TimeSpan.FromSeconds(10));
da.RepeatBehavior = RepeatBehavior.Forever;
image.RenderTransformOrigin = new Point(x, y);
image.RenderTransform = rt;
rt.BeginAnimation(RotateTransform.AngleProperty, da);
Now I would like to animate a rotation of this element, but first it should be rotated 90 clock to ">".
How to do that?
