title: Image Rotation Animation in Windows Phone 7
body: <p>Upon Taping an image, i want the image to rotate. I checked online but nothing seems helpful.
  So how can this be done?<br>
  Any help would be appreciated.</p>
  
  <p><strong>UPDATE:</strong><br>
  I found the solution and it appears to be pretty simple. The following code does the trick of rotation animation of an image:  </p>
  
  <pre><code>            Duration duration = new Duration(TimeSpan.FromSeconds(2));
              Storyboard sb = new Storyboard();
              sb.Duration = duration;
  
              DoubleAnimation da = new DoubleAnimation();
              da.Duration = duration;
  
              sb.Children.Add(da);
  
              RotateTransform rt = new RotateTransform();
  
              Storyboard.SetTarget(da, rt);
              Storyboard.SetTargetProperty(da, new PropertyPath("Angle"));
              da.To = 360;
  
              Search.RenderTransform = rt;
              Search.RenderTransformOrigin = new Point(0.5, 0.5);
  
              sb.Begin();
  </code></pre>