title: Animation for images wpf
body: <p>I want to move the images one by one like slides. i am using the following code to move one image. How to apply this animation to all the images in the image folder.</p>
  
  <p>Code:</p>
  
  <pre><code> &lt;Image Name="img" Width="50" Height="25"  Grid.Row="3" HorizontalAlignment="Left" Source="btn_audio_stop.jpg"&gt;
          &lt;Image.Triggers&gt;
              &lt;EventTrigger RoutedEvent="Image.Loaded"&gt;
                  &lt;EventTrigger.Actions&gt;
                      &lt;BeginStoryboard&gt;
                          &lt;Storyboard&gt;
                              &lt;DoubleAnimationUsingKeyFrames Storyboard.TargetName="Trans" Storyboard.TargetProperty="Y" Duration="0:0:25"&gt;
                                  &lt;LinearDoubleKeyFrame Value="350" KeyTime="0:0:25" /&gt;
                                  &lt;!--&lt;LinearDoubleKeyFrame Value="50" KeyTime="0:0:5" /&gt;
                                  &lt;LinearDoubleKeyFrame Value="200" KeyTime="0:0:3" /&gt;--&gt;
                              &lt;/DoubleAnimationUsingKeyFrames&gt;
                          &lt;/Storyboard&gt;
                      &lt;/BeginStoryboard&gt;
                  &lt;/EventTrigger.Actions&gt;
              &lt;/EventTrigger&gt;
          &lt;/Image.Triggers&gt;
          &lt;Image.RenderTransform&gt;
              &lt;TranslateTransform x:Name="Trans" X="0" Y="0" /&gt;
          &lt;/Image.RenderTransform&gt;
      &lt;/Image&gt;
  </code></pre>