title: WPF using Animation to move a component
body: <p>I only have experience with C/C++ and just moved to C# and WPF. I want to create an animation to move a component(e.g an image), but I don't know why the following is illegal:</p>
  
  <pre><code>ThicknessAnimation a = new ThicknessAnimation(...);
  
  Image1.BeginAnimation(Image1.Margin, a); // illegal. Image.Margin illegal too
  </code></pre>
  
  <p>It seems just can't use Margin here. Of course create a timer and create Thickness objects for Margin manually can work, but that will be dull and if Animation is possible, it will be more elegant.</p>
  
  <p>Is a storyboard required here? I heard some says create a storyboard and you can use Margin property, but I don't know storyboard at all and can't understand that. Thanks</p>