title: WPF Marquee Text Animation
body: <p>I can scroll text with <code>TranslateTransform</code> but when the animation is close to finishing I'd like it to begin again. Like a snake :)</p>
  
  <p>This is what I've got:</p>
  
  <pre><code>&lt;StackPanel Orientation="Horizontal" Margin="0,0,0,0"&gt;
      &lt;StackPanel.RenderTransform&gt;
          &lt;TranslateTransform x:Name="transferCurreny" X="-40"/&gt;
      &lt;/StackPanel.RenderTransform&gt;
      &lt;StackPanel.Triggers&gt;
          &lt;EventTrigger RoutedEvent="StackPanel.Loaded"&gt;
              &lt;BeginStoryboard&gt;
                  &lt;Storyboard&gt;
                      &lt;DoubleAnimation From="0" To="-900" Duration="00:00:10"
                        Storyboard.TargetProperty="X"
                        Storyboard.TargetName="transferCurreny"
                        RepeatBehavior="Forever"/&gt;
                  &lt;/Storyboard&gt;
              &lt;/BeginStoryboard&gt;
          &lt;/EventTrigger&gt;
      &lt;/StackPanel.Triggers&gt;
      &lt;TextBlock FontSize="25"  x:Name="txtKron" Margin="10,0,7,0"/&gt;
  &lt;/StackPanel&gt;
  </code></pre>
  
  <p>This is what I'd like:</p>
  
  <p><img src="https://i.stack.imgur.com/4cohe.png" alt="enter image description here"></p>