title: Animate a grid to move or slide to the right WPF
body: <p>I have a grid with elements in it. I want to move all of those elements, so is it not possible to just move the grid all together? This isn't having any effect from what I'm seeing and I've tried even ScaleX and such as well.</p>
  
  <pre><code>&lt;Grid x:Name="HancockDetails" HorizontalAlignment="Left" Height="100" VerticalAlignment="Top" Width="100" Grid.Column="1" RenderTransformOrigin="0.5,0.5"&gt;                       
     &lt;Rectangle HorizontalAlignment="Left" Height="100" Stroke="Black" VerticalAlignment="Top" Width="100"/&gt;
      &lt;TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Foreground="#FFF30000"/&gt;               
              &lt;/Grid&gt;
            &lt;/Grid&gt;
        &lt;/s:ScatterViewItem&gt;
  </code></pre>
  
  <p>My function:</p>
  
  <pre><code>Storyboard sb = new Storyboard();
  
  DoubleAnimation slide = new DoubleAnimation();
  slide.To = 3000.0;
  slide.From = 0;
  slide.Duration = new Duration(TimeSpan.FromMilliseconds(40.0));
  
  // Set the target of the animation
  Storyboard.SetTarget(slide,HancockDetails);
  Storyboard.SetTargetProperty(slide, new PropertyPath("RenderTransform.(ScaleTransform.ScaleY)"));
  
  // Kick the animation off
  sb.Children.Add(slide);
  sb.Begin();
  </code></pre>