Windows Phone 8.1 Polygon

network | | 访问(56)
<ScrollViewer>
    <StackPanel>
        <!--三角形-->
        <Polygon Fill="Red" Stroke="Blue" StrokeThickness="4" Points="50,50 200,200 350,50" />
        <!--鱼的形状-->
        <Polygon Points="40,100 90,140 215,100 265,150 215,200 90,160 40,200" Fill="Orange" ></Polygon>
        <!--飞镖的形状-->
        <Polygon Points="50, 100 200, 100 200, 200 300, 30" Stroke="White" StrokeThickness="4" Opacity="0.5">
            <Polygon.Fill>
                <LinearGradientBrush StartPoint="0,0" EndPoint="1,1" >
                    <GradientStop Color="Blue" Offset="0.25" />
                    <GradientStop Color="Green" Offset="0.50" />
                    <GradientStop Color="Red" Offset="0.75" />
                </LinearGradientBrush>
            </Polygon.Fill>
        </Polygon>
    </StackPanel>
</ScrollViewer>