title: How do I create a rotate animation on an image object using c# code only (inside a WPF window)
body: <p>I have a couple of open questions relating to the same sort of thing,</p>
  
  <p>I am quite new to WPF but experienced with C# and Winforms.</p>
  
  <p>I have looked around on the interweb for a working example but have yet to find one that works.</p>
  
  <p>What I want to achieve is in a C# function create the following</p>
  
  <ul>
  <li>create an image (image 1)</li>
  <li>create an image (image 2)</li>
  <li>put the images on the window side by side</li>
  <li>create a storyboard</li>
  <li>animate the rotate property of image1 from 0 to 360 (animation1)</li>
  <li>animate the opacity property of image 2 from full to invisible (animation2)</li>
  <li>the storyboard should run for ten seconds with animation 1 starting
  at 0 seconds and animation 2 starting at 5 seconds</li>
  </ul>
  
  <p>apologies for the explicit request for code, but, I have looked, and tried, my previous question had full code that executed but no animation showed (link below)</p>
  
  <p><a href="https://stackoverflow.com/questions/11057127/how-to-create-a-storyboard-and-rotating-an-image-in-wpf-using-c-code/11058289#11058289">how to create a storyboard and rotating an image in wpf using c# code</a></p>
  
  <p>thanks in advance</p>
  
  <p>Dan.</p>