How to draw gridline on WPF Canvas?

Viewed 12886

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?

1 Answers
Related