I want to draw rectangle by two triangles. Very simple task. But Silverlight can't handle it.
<Grid x:Name="LayoutRoot" UseLayoutRounding="False" Background="White">
<Polygon Fill="Black">
<Polygon.Points>
<Point X="10" Y="100"/>
<Point X="100" Y="10"/>
<Point X="100" Y="100"/>
</Polygon.Points>
</Polygon>
<Polygon Fill="Black">
<Polygon.Points>
<Point X="10" Y="10"/>
<Point X="100" Y="10"/>
<Point X="10" Y="100"/>
</Polygon.Points>
</Polygon>
</Grid>
Logicly i have to see a rectangle when i compile this code. If you try to use this code you will see the rectangle but you will have an annoing white line in it...
So i whant to know.. is there a way to draw rectangle (that will look like rectangle) by two triangles in Silverlight?