I need to build a function drawing gridline on the canvas in WPF:

example gridline

void DrawGridLine(double startX, double startY, double stepX, double stepY, 
                  double slop, double width, double height)
{
    // How to implement draw gridline here?
}

How would I go about this?

Edit
Report