Maybe try overlaying the canvas on VisualBrush.
To do this, visualBrush just add a 4 * 4 rectangle and repeat it in tile mode. Alternatively, you can simply add lines to it so that it does not overlap the edges of the rectangle ... of your choice :)
Your problem is to create a brush ... A test run showed that this code
int limit = 10000 * 10000; var converter = new BrushConverter(); for (int i = 0; i < limit; i++) { var blueBrush = converter.ConvertFromString("Blue") as Brush; }
it took 53 seconds. You are trying to create 100,000,000 brushes :) If it is patterned, use a patterned visual brush if it does not have a pattern ... perhapse is looking for another solution. The overhead of keeping many brushes in memory in Gigabytes
TerrorAustralis
source share