title: How to add scrolling/moving text in textblock in xaml
body: <p>I want to add a scrolling/moving text(from right to left) in the textblock.
  It should scroll one time only.
  I have Googled it but didn't find anything.
  I want to scroll the text in the textblock (not the whole textblock) only once. Then scrolling should be stopped.</p>
  
  <p>I found this code on net but it is not what I want. I want to scroll the text 1 time and then stop scrolling. Any idea how to do that?</p>
  
  <pre><code>&lt;TextBlock FontSize="22" x:Name="txtScrolling" Margin="1386,208,-616,460"&gt;
              &lt;TextBlock.RenderTransform&gt;
                  &lt;TranslateTransform x:Name="translate" /&gt;
              &lt;/TextBlock.RenderTransform&gt;
              &lt;TextBlock.Triggers&gt;
                  &lt;EventTrigger RoutedEvent="FrameworkElement.Loaded"&gt;
                      &lt;BeginStoryboard&gt;
                          &lt;Storyboard RepeatBehavior="1"&gt;
                              &lt;DoubleAnimation
                          From="1000" To="-1000"
                          Storyboard.TargetName="translate"
                          Storyboard.TargetProperty="X"
                          Duration="0:0:10" /&gt;
                          &lt;/Storyboard&gt;
                      &lt;/BeginStoryboard&gt;
                  &lt;/EventTrigger&gt;
              &lt;/TextBlock.Triggers&gt;
      This is the Text to Scroll
          &lt;/TextBlock&gt;
  </code></pre>