title: C# WPF: Creating UI for drawing shapes using mouse
body: <p>I am developing an application in C# .NET using WPF. I want the users to be able to draw shapes on a draw area. The shapes are zigzag lines and polygons. The end points of line segments should be small squares as shown in the image below. In some cases, I need arrows in the middle of line segments as shown in the image below.</p>
  
  <p><img src="https://i.stack.imgur.com/IX4xM.png" alt="Sample image"></p>
  
  <p>I have partially implemented the drawing by adding lines to a canvas and resizing the lines on mouse events. However, I have not been able to implement creation of small squares on the end points of line segments and arrows.</p>
  
  <p>Is there any package or tool that provides the functionality of drawing such shapes?</p>
  
  <p>Thank you for any help which you can provide.</p>