How to draw gridline on WPF Canvas?
I need to build a function drawing gridline on the canvas in WPF: 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? Jeff Mercado You don't really have to "draw" anything with WPF. If you want to draw lines, use the appropriate geometries to draw them. In your case it could be simple really. You're just drawing a grid so you could just create a DrawingBrush to draw a single grid square and tile it to fill in the rest. To draw your tile, you could think of it