title: WPF Transformations -- Rotating and switching width/height?
body: <p>Basically, I have a <code>FooControl</code> (I did <b>not</b> set the Height/Width explicitly) added to a <code>Grid</code>.</p>
  
  <pre><code>&lt;Grid&gt;
      &lt;Grid.RowDefinitions&gt;
          &lt;RowDefinition /&gt;
          &lt;RowDefinition /&gt;
      &lt;/Grid.RowDefinitions&gt;
      &lt;FooControl x:Name="HWFoo" Content="HelloWorld" Grid.Row="0"&gt;
          &lt;FooControl.RenderTransform&gt;
              &lt;TransformGroup&gt;
                  &lt;RotateTransform Angle="270" /&gt;
                  &lt;TranslateTransform Y="{Binding ActualWidth, ElementName=HWFoo}" /&gt;
              &lt;/TransformGroup&gt;
          &lt;/FooControl.RenderTransform&gt;
      &lt;/FooControl&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>But, the problem now is that the FooControl fills up the entire row and when it's transformed it looks quite bizarre (because of it's height/width).<br />
  <hr>
  FooControl is a custom control. So do I do something with the ArrangeOverride or MeasureOverride? Or am I doing something wrong that can be fixed in XAML.</p>