title: How to rotate a image in xaml/c#
body: <p>Im trying to rotate a <code>&lt;Image&gt;</code> of an arrow (placed in the middle of a 40x40 image). By what I remember from graphics class i need to first translate the image back to its center, rotate and then translate back:</p>
  
  <pre><code>            TranslateTransform tTrans = new TranslateTransform();
              tTrans.X -= 20;
              tTrans.X -= 20;
  
              RotateTransform rTrans = new RotateTransform();
              rTrans.Angle = 60;
  
              TranslateTransform t2Trans = new TranslateTransform();
              tTrans.X += 20;
              tTrans.X += 20;
  
              imgWind.RenderTransform = ?;
  </code></pre>
  
  <p>Anyone got a good idea on how i can apply the transformations?</p>