Windows Phone 8.1 Path

network | | 访问(36)
<StackPanel>
    <!--Path图形-->
    <Path Stroke="White" StrokeThickness="4" Data="M 100,30 A 40,50 50 1 0 100,50" />
    <!--使用GeometryGroup组合图形-->
    <Path Stroke="Red" StrokeThickness="3" Fill="Blue">
        <Path.Data>
            <GeometryGroup >
                <LineGeometry StartPoint="20,200" EndPoint="300,200" />
                <EllipseGeometry Center="80,150" RadiusX="50" RadiusY="50" />
                <RectangleGeometry Rect="80,167 150 30"/>
            </GeometryGroup>
        </Path.Data>
    </Path>
    <!--五角星图形-->
    <Path Data="M 255.30 150.90 L 181.80 179.20 182.00 258.00 132.35 
                        196.80 57.50 221.30 100.35 155.20 53.90 91.60 130.00 111.90 
                        176.15 48.10 180.35 126.75 255.30 150.90 "  
                         Width="203" Stretch="Fill" Height="211">
        <Path.Fill>
            <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
                <!--渐变填充-->
                <GradientStop Color="Black"/>
                <GradientStop Color="Red" Offset="0.591"/>
                <GradientStop Color="Green" Offset="0.252"/>
                <GradientStop Color="Blue" Offset="0.957"/>
            </LinearGradientBrush>
        </Path.Fill>
    </Path>
</StackPanel>