<Window x:Class="_12_形状画刷和变换_11RadialGradientBrush.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        Icon="public/003540AH4M72.jpg" Title="12-形状画刷和变换-11RadialGradientBrush" Height="450" Width="800">
    <StackPanel>
        <Ellipse Margin="5" Stroke="Black" StrokeThickness="4" Width="200" Height="200">
            <Ellipse.Fill>
                <RadialGradientBrush RadiusX="1" RadiusY="1" GradientOrigin="0.7,0.3">
                    <GradientStop Color="Wheat" Offset="0" />
                    <GradientStop Color="Blue" Offset="1" />
                </RadialGradientBrush>
            </Ellipse.Fill>
        </Ellipse>

        <Ellipse Margin="5" Stroke="Black" StrokeThickness="4" Width="200" Height="200">
            <Ellipse.Fill>
                <RadialGradientBrush RadiusX="1" RadiusY="1" GradientOrigin="0.5,0.5">
                    <GradientStop Color="Wheat" Offset="0" />
                    <GradientStop Color="Red" Offset="0.5" />
                </RadialGradientBrush>
            </Ellipse.Fill>
        </Ellipse>
    </StackPanel>
</Window>