Windows Phone 8.1 Ellipse

network | | 访问(36)
<StackPanel>
    <!--创建一个Ellipse图形-->
    <Ellipse Fill="Yellow" Height="100" Width="100" ></Ellipse>
    <!--利用Ellipse图形组成一个风车形状的图形-->
    <Grid>
        <Ellipse Fill="Yellow" Height="200" Width="200" Stroke="Blue" StrokeThickness="70" StrokeDashArray="1"></Ellipse>
        <Ellipse Fill="Red" Height="50" Width="50"></Ellipse>
    </Grid>
    <!--创建一个颜色渐变的Ellipse图形-->
    <Ellipse Height="200" Width="200">
        <Ellipse.Fill>
            <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                <GradientStop Color="White" Offset="0" />
                <GradientStop Color="Yellow" Offset="0.7" />
            </LinearGradientBrush>
        </Ellipse.Fill>
    </Ellipse>
</StackPanel>