You're calling BeginAnimation()
on the Image, but using AngleProperty
from Bug
.
You could either use BeginAnimation()
on the RotateTransform
_image.RenderTransform.BeginAnimation(RotateTransform.AngleProperty, animation);
or call BeginAnimation()
on your control:
this.BeginAnimation(AngleProperty, animation);