title: Rotate a canvas using Layout Transform
body: <p>I'm trying to rotate this canvas</p>
  
  <pre><code>            &lt;Canvas Canvas.Left="203" Canvas.Top="274" Name="canvas1" Height="0" Width="0" &gt;
                  &lt;Rectangle.LayoutTransform&gt;
                      &lt;RotateTransform Angle="-45"/&gt;
                  &lt;/Rectangle.LayoutTransform&gt;
  </code></pre>
  
  <p>I want to rotate this canvas but in the same position.. check this image<img src="https://i.stack.imgur.com/sIhVC.gif" alt="enter image description here"></p>
  
  <p>The left image I dont want to do that.. I need to create the second one.. but always I need to set X, Y values? Or is there another way?</p>