title: Put a shape at the start and end of a line in WPF
body: <p>I'm using System.Windows.Shapes.Line in my application to draw a line on a canvas. I want to put a shape e.g. a cross ('x') at the start and end of the line? Is there any way to do this by setting a property. I can add a 'x' on the canvas based on the coordinates but I was hoping if we can do this using some Line property directly.
  Currently I'm able to draw this = ---------------
  <a href="https://i.stack.imgur.com/sEPwy.png" rel="nofollow noreferrer">dashed line</a> using the properties as in the snippet under:-</p>
  
  <pre><code>var DistanceLine = new Line();
  DistanceLine.Stroke = new SolidColorBrush(LineColor);
  DistanceLine.StrokeDashArray = new DoubleCollection() {0, 4};
  DistanceLine.StrokeDashCap = PenLineCap.Round;
  DistanceLine.StrokeEndLineCap = PenLineCap.Round;
  DistanceLine.StrokeLineJoin = PenLineJoin.Round;
  DistanceLine.StrokeStartLineCap = PenLineCap.Round;
  DistanceLine.StrokeThickness = 3;
  </code></pre>
  
  <p>I want something like this = x------------------x
  <a href="https://i.stack.imgur.com/DmaWz.png" rel="nofollow noreferrer">dashed line with 'x' marks</a></p>
  
  <p>How can I make a custom shape at the end of the lines? </p>