title: Storyboard doesn't work
body: <p>I want to rotate as well as enlarge and then shrink a TextBlock. I want to use Stroyboard and write the code in code-behind file.</p>
  
  <pre><code>&lt;Window x:Class="WpfApplication1.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded_1"&gt;
      &lt;Grid&gt;
          &lt;StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"&gt;
              &lt;TextBlock Name="rotatingTextBlock" Text="Hello" RenderTransformOrigin="0.5, 0.5"/&gt;
              &lt;TextBlock Text=" World!"/&gt;
          &lt;/StackPanel&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>..</p>
  
  <pre><code>private void Window_Loaded_1(object sender, RoutedEventArgs e)
  {
      TransformGroup tc = new TransformGroup();
      RotateTransform rotateTransform = new RotateTransform();
      tc.Children.Add(rotateTransform);
      ScaleTransform scaleTransform = new ScaleTransform();
      tc.Children.Add(scaleTransform);
  
      rotatingTextBlock.RenderTransform = tc;
  
      Storyboard storyboard = new Storyboard();
      DoubleAnimation rotateAnimation = new DoubleAnimation(0, 360, new Duration(TimeSpan.FromSeconds(2)));
      rotateAnimation.AccelerationRatio = 0.15;
      rotateAnimation.DecelerationRatio = 0.15;
      Storyboard.SetTarget(rotateAnimation, rotateTransform);
      Storyboard.SetTargetProperty(rotateAnimation, new PropertyPath(RotateTransform.AngleProperty));
      storyboard.Children.Add(rotateAnimation);
  
      DoubleAnimation scaleAnimation = new DoubleAnimation(1, 1.2, new Duration(TimeSpan.FromSeconds(1)));
      scaleAnimation.AccelerationRatio = 0.5;
      scaleAnimation.DecelerationRatio = 0.5;
      scaleAnimation.AutoReverse = true;
      Storyboard.SetTarget(scaleAnimation, scaleTransform);
      Storyboard.SetTargetProperty(scaleAnimation, new PropertyPath(ScaleTransform.ScaleXProperty));
      storyboard.Children.Add(scaleAnimation);
  
      storyboard.Begin();
  }
  </code></pre>
  
  <p>My code doesn't work. Am I missing something?</p>