How to draw the following chart as a background on custom canvas inherited from Canvas - system ui element?
Thanks for any useful links.
How to draw the following chart as a background on custom canvas inherited from Canvas - system ui element?
Thanks for any useful links.
You can just set
Canvas.Background
to someDrawingBrush
. This brush can just need to render a Rectangle (by using someRectangleGeometry
). Because of supporting forTileMode
, we can repeat this rectangle along both horizontal and vertical axes and make the full grid for you:Note that you can draw something outside the Canvas but its Background is always inside its region. So you need to set the Size for your Canvas correctly.