title: Animation not working in Wpf
body: <p>Well I have two problems both related to animation.</p>
  
  <p>1)  The following code does not animate the tittle and border i am calling the following like this.FadeIn(), this being of type UIElement of course.</p>
  
  <pre><code>public static void FadeIn(this UIElement targetControl)
      {
          DoubleAnimation fadeInAnimation = new DoubleAnimation(0, 1, new Duration(TimeSpan.FromSeconds(1.5)));
          Storyboard.SetTarget(fadeInAnimation, targetControl);
          Storyboard.SetTargetProperty(fadeInAnimation, new PropertyPath(UIElement.OpacityProperty));
          Storyboard sb = new Storyboard();
          sb.Children.Add(fadeInAnimation);
          sb.Begin();
      }
  </code></pre>
  
  <p>2) This is also not working, no animation is shown.</p>
  
  <pre><code>public static void SkewAnimation(this UIElement targetControl) 
  { 
     DoubleAnimation skewAnimation = new DoubleAnimation(0, 360, new    Duration(TimeSpan.FromSeconds(3)));
     Storyboard.SetTarget(skewAnimation, targetControl);
  
     Storyboard.SetTargetProperty(skewAnimation, new  PropertyPath(SkewTransform.AngleXProperty)); 
     Storyboard sb = new Storyboard();
     sb.Children.Add(skewAnimation);
     sb.Begin(); 
  }
  </code></pre>