title: How Draw rectangle in WPF?
body: <p>I need draw rectangle in canvas.
  I know how to draw. But I did not get to do so would draw on a 360-degree</p>
  
  <p>Example. blue, lilac, green they are one and the same rectangle, I changed the color for example
  Red point is start position rectangle.</p>
  
  <p><img src="https://i.stack.imgur.com/z2pmh.jpg" alt="enter image description here"></p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>My actions:</p>
  
  <p>LeftMouseDown in x=50;y=50 (press)
  MoveMouse to 100;100 - now it works
  MoveMouse to 30;150 or MoveMouse to 10;10  - Now I can not do this, but I need it</p>