title: How to draw gridline on WPF Canvas?
body: <p>I need to build a function drawing gridline on the canvas in WPF:</p>
  
  <p><img src="https://i.stack.imgur.com/XHVJv.png" alt="example gridline"></p>
  
  <pre><code>void DrawGridLine(double startX, double startY, double stepX, double stepY, 
                    double slop, double width, double height)
  {
      // How to implement draw gridline here?
  }
  </code></pre>
  
  <p>How would I go about this?</p>