I need to draw a grid on my screen and with every click of the user draw an image on that specific area.
I don’t know how to draw that grid. The squares will have fixed sizes (32×32 pixels) but their number will be variable. I could have a NxN cells grid. Also, this grid needs to be in a scrollpane as its size is variable.
Does anyone know how to draw that grid and get the square clicked?
I’m using WPF.
Thanks.
Use
ScrollViewerto enable scrolling capabilitythen generate a
Gridobject: