Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is a little verbose in Xaml, but if you're creating the triangles programatically it shouldn't matter, how about something like this:</p> <pre><code>&lt;Canvas Background="#FFF9B15A" Width="200" Height="110" VerticalAlignment="Top" HorizontalAlignment="Left"&gt; &lt;Path Fill="Black" StrokeThickness="0"&gt; &lt;Path.Data&gt; &lt;GeometryGroup&gt; &lt;PathGeometry&gt; &lt;PathGeometry.Figures&gt; &lt;PathFigureCollection&gt; &lt;PathFigure IsClosed="True" StartPoint="10,10"&gt; &lt;PathFigure.Segments&gt; &lt;PathSegmentCollection&gt; &lt;LineSegment Point="100,10" /&gt; &lt;LineSegment Point="10, 100" /&gt; &lt;/PathSegmentCollection&gt; &lt;/PathFigure.Segments&gt; &lt;/PathFigure&gt; &lt;/PathFigureCollection&gt; &lt;/PathGeometry.Figures&gt; &lt;/PathGeometry&gt; &lt;PathGeometry&gt; &lt;PathGeometry.Figures&gt; &lt;PathFigureCollection&gt; &lt;PathFigure IsClosed="True" StartPoint="10,100"&gt; &lt;PathFigure.Segments&gt; &lt;PathSegmentCollection&gt; &lt;LineSegment Point="100,10" /&gt; &lt;LineSegment Point="100, 100" /&gt; &lt;/PathSegmentCollection&gt; &lt;/PathFigure.Segments&gt; &lt;/PathFigure&gt; &lt;/PathFigureCollection&gt; &lt;/PathGeometry.Figures&gt; &lt;/PathGeometry&gt; &lt;/GeometryGroup&gt; &lt;/Path.Data&gt; &lt;/Path&gt; &lt;/Canvas&gt; </code></pre> <p>This way you're really compositing a single element, the Path, with triangles. The way you've shown creates separate elements and each are going to be anti-aliased individually.</p> <p>Hope that helps.</p> <p>Sergio</p>
    singulars
    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