Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>GeometryDrawing.Brush is the fill, or background color. GeometryDrawing.Pen is the line color. It appears you're intending to color the lines of your Graph paper but you're using the wrong property. When I fixed that, I noticed your 10px grid lines don't repeat under the 100px grid lines they way you wanted, so here's the solution I came up with. </p> <pre><code>&lt;DrawingBrush x:Key="ListBackgroundBrush" Viewport="0,0,100,100" ViewportUnits="Absolute" TileMode="Tile"&gt; &lt;DrawingBrush.Drawing&gt; &lt;DrawingGroup&gt; &lt;!-- Geometry for the 10px squares --&gt; &lt;GeometryDrawing Brush="White"&gt; &lt;GeometryDrawing.Geometry&gt; &lt;GeometryGroup&gt; &lt;PathGeometry Figures=" M10,0 L10,100 M20,0 L20,100 M30,0 L30,100 M40,0 L40,100 M50,0 L50,100 M60,0 L60,100 M70,0 L70,100 M80,0 L80,100 M90,0 L90,100 M0,10 L100,10 M0,20 L100,20 M0,30 L100,30 M0,40 L100,40 M0,50 L100,50 M0,60 L100,60 M0,70 L100,70 M0,80 L100,80 M0,90 L100,90" /&gt; &lt;/GeometryGroup&gt; &lt;/GeometryDrawing.Geometry&gt; &lt;GeometryDrawing.Pen&gt; &lt;Pen Thickness="1" Brush="Green" /&gt; &lt;/GeometryDrawing.Pen&gt; &lt;/GeometryDrawing&gt; &lt;!-- Geometry for the 100px squares --&gt; &lt;GeometryDrawing Brush="Transparent"&gt; &lt;GeometryDrawing.Geometry&gt; &lt;GeometryGroup&gt; &lt;PathGeometry Figures="M0,0 L100,0 L100,100" /&gt; &lt;/GeometryGroup&gt; &lt;/GeometryDrawing.Geometry&gt; &lt;GeometryDrawing.Pen&gt; &lt;Pen Thickness="3" Brush="Green" /&gt; &lt;/GeometryDrawing.Pen&gt; &lt;/GeometryDrawing&gt; &lt;/DrawingGroup&gt; &lt;/DrawingBrush.Drawing&gt; &lt;/DrawingBrush&gt; &lt;Grid Background="{StaticResource ListBackgroundBrush}" /&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload