I need to create the following WPF application:
- A main window with a square grid in it.
- The grid should have a large amount of cells in it (for example: [1000x1000]), each cell being painted black or white.
- A "Robot" object should be able to walk on the grid from cell to cell.
I thought of using a Uniformgrid object, but I suspect that applying the "cell logic" for each cell for a grid as big as [1000x1000] would create massive overhead. Since basically, my grid is made out of "cells", I thought of using an InkCanvas class, thus each cell is actually a pixel on screen. But than where do I put the "logic" behind each cell? How do I make my "Robot" class read pixel coordinates from the pixel he is currently on, or read the information from neighbour pixels?
To conclude, I don't know what sort of object class to use as a grid for my application.