title: TranslateTransform in Style
body: <p>I have the following code: </p>
  
  <pre><code>  &lt;Window.Resources&gt;
  &lt;Style TargetType="{x:Type TextBlock}"&gt;
    &lt;Setter Property="LayoutTransform"&gt;
      &lt;Setter.Value&gt;
        &lt;TranslateTransform /&gt;
      &lt;/Setter.Value&gt;
    &lt;/Setter&gt;
    &lt;Style.Triggers&gt;
      &lt;EventTrigger RoutedEvent="FrameworkElement.Loaded"&gt;
        &lt;EventTrigger.Actions&gt;
          &lt;BeginStoryboard&gt;
            &lt;Storyboard RepeatBehavior="Forever" AutoReverse="True"&gt;
              &lt;DoubleAnimation 
                From="300"
                To="-300" 
                Storyboard.TargetProperty="LayoutTransform.X"
                Duration="0:0:1" /&gt;
            &lt;/Storyboard&gt;
          &lt;/BeginStoryboard&gt;
        &lt;/EventTrigger.Actions&gt;          
      &lt;/EventTrigger&gt;
    &lt;/Style.Triggers&gt;      
  &lt;/Style&gt;
  </code></pre>
  
  <p></p>
  
  <p><br>
      
        
        
        
      </p>
  
  <pre><code>&lt;TextBlock
    Grid.Column="1"
    Text="This is a sample text."/&gt;
  
  &lt;Rectangle Grid.Column="0" Fill="AliceBlue"/&gt;
  &lt;Rectangle Grid.Column="2" Fill="Aquamarine"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>Basically what I'm trying to achieve is that the content of TextBlock should be scrolling from right to left (and back). Somehow this Style doesn't do anything.
  If I change TranslateTransform to ScaleTransform and change LayoutTransform.X to LayoutTransform.ScaleX the TextBlock is animated just fine.
  Is this a bug in WPF or am I missing something?</p>