Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In order to rotate your text at 90 degrees, I believe that you will need to use the <code>LayoutTransform</code> instead of the <code>RenderTransform</code>:</p> <pre><code>&lt;TextBlock Text="FootRoller" HorizontalAlignment="Center" VerticalAlignment="Center"&gt; &lt;TextBlock.LayoutTransform&gt; &lt;RotateTransform Angle="-90"/&gt; &lt;/TextBlock.LayoutTransform&gt; &lt;/TextBlock&gt; </code></pre> <p>The difference is <em>when</em> the transform will be applied. Using the <code>LayoutTransform</code>, the text will be rotated <em>before</em> the layout pass and this will be important in your case. I imagine that using the <code>RenderTransform</code> will rotate your <code>TextBlock</code>, but as it does that <em>after</em> the layout pass, it would not show it all... this is because it was measured for size <em>before</em> it was rotated.</p> <p>You can find out full details from the <a href="http://msdn.microsoft.com/en-us/library/ms750596%28v=vs.110%29.aspx" rel="nofollow">Transforms Overview</a> page on MSDN. From the linked page:</p> <blockquote> <p><strong>LayoutTransform</strong> – A transform that is applied before the layout pass. After the transform is applied, the layout system processes the transformed size and position of the element.</p> <p><strong>RenderTransform</strong> – A transform that modifies the appearance of the element but is applied after the layout pass is complete. By using the RenderTransform property instead of the LayoutTransform property, you can obtain performance benefits.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload