title: Visual brush weird behavior
body: <p>I have a textbox and a rectangle. The rectangle updates itself when textbox content changes. I'm painting the rectangle fill with visual brush. The problem is that the visual brush don't match the textbox's actual look. What should I do. Here's my code:</p>
  
  <pre><code>    &lt;StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"&gt;
          &lt;TextBox Name="txtBox"/&gt;
  
          &lt;Rectangle Height="{Binding ElementName=txtBox, Path=ActualHeight}"
                     Width="{Binding ElementName=txtBox, Path=ActualWidth}"&gt;
              &lt;Rectangle.Fill&gt;
                 &lt;VisualBrush Visual="{Binding ElementName=txtBox}"/&gt;
              &lt;Rectangle.Fill&gt;
              &lt;Rectangle.LayoutTransform&gt;
                  &lt;ScaleTransform ScaleY="-0.75"/&gt;
              &lt;/Rectangle.LayoutTransform&gt;
          &lt;/Rectangle&gt;
      &lt;/StackPanel&gt;
  </code></pre>
  
  <p>Here I wrote "Visual Brush", </p>
  
  <p><img src="https://i.stack.imgur.com/8HhfM.png" alt="enter image description here">
  then deleted few chars and look what I got:
  <img src="https://i.stack.imgur.com/SL18G.png" alt="enter image description here"></p>