title: RenderTransform binding inside Style in WPF
body: <p>I have the following code. Why is the <code>Text</code>-Binding working and the <code>TranslateTransform.X</code> not?</p>
  
  <pre><code>&lt;Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          x:Class="WpfApplication2.MainWindow"
          Title="MainWindow"&gt;
  
      &lt;Window.Resources&gt;
          &lt;Style TargetType="TextBlock" x:Key="txtStyle"&gt;
              &lt;Setter Property="HorizontalAlignment" Value="Left"/&gt;
  
              &lt;Setter Property="Text" Value="{Binding RelativeSource={RelativeSource Self}, Path=Width, Mode=OneWay}"/&gt;
  
              &lt;Setter Property="RenderTransform"&gt;
                  &lt;Setter.Value&gt;
                      &lt;TranslateTransform X="{Binding RelativeSource={RelativeSource Self}, Path=Width, Mode=OneWay}"/&gt;
                  &lt;/Setter.Value&gt;
              &lt;/Setter&gt;
          &lt;/Style&gt;
      &lt;/Window.Resources&gt;
  
      &lt;StackPanel&gt;
          &lt;TextBlock Canvas.Top="50" Background="Lime" Width="200" Style="{StaticResource txtStyle}"/&gt;
          &lt;TextBlock Canvas.Top="100" Background="LightBlue" Width="300" Style="{StaticResource txtStyle}"/&gt;
      &lt;/StackPanel&gt;
  &lt;/Window&gt;
  </code></pre>