Polygon Drawing Problem
Posted: 19 Sep 2016, 23:48
Is the polygon class supported? I've tried using it but nothing seems to get drawn. I've even tried a solidcolorbrush but nothing seems to work. Is there a decoration or alternative you can suggest to make this work?
Using V1.2.6.f5
This works...
Yet this wont
Using V1.2.6.f5
This works...
Code: Select all
<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
x:Class="Darren.Asteroid"
Width="100" Height="100">
<UserControl.Background>
<ImageBrush ImageSource="../../Raster/Texture/Asteroid.png" />
</UserControl.Background>
</UserControl>
Code: Select all
<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
x:Class="Darren.Asteroid"
Width="100" Height="100">
<Polygon>
<Polygon.Fill>
<!-- File path is relative to this file. -->
<ImageBrush ImageSource="../../Raster/Texture/Asteroid.png" />
</Polygon.Fill>
<Polygon.Points>
<PointCollection>
<Point X="20" Y="0" />
<Point X="70" Y="5" />
<Point X="100" Y="20" />
<Point X="80" Y="90" />
<Point X="30" Y="95" />
<Point X="0" Y="50" />
</PointCollection>
</Polygon.Points>
</Polygon>
</UserControl>