<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      HorizontalAlignment="Center" VerticalAlignment="Center">

<Viewbox>

<!-- Example 13-43. Radial gradient fills -->

<Grid Width="16" Height="16" Margin="0,0,5,0" >
  <Grid.ColumnDefinitions>
    <ColumnDefinition Width="*" />
    <ColumnDefinition Width="10*" />
    <ColumnDefinition Width="*" />
  </Grid.ColumnDefinitions>

  <Grid.RowDefinitions>
    <RowDefinition Height="*" />
    <RowDefinition Height="20*" />
    <RowDefinition Height="6*" />
  </Grid.RowDefinitions>


  <Ellipse Grid.RowSpan="3" Grid.ColumnSpan="3" Margin="0.5">
    <Ellipse.Fill>
      <RadialGradientBrush Center="0.5,0.9" GradientOrigin="0.5,0.9"
                           RadiusX="0.7" RadiusY="0.5">
        <GradientStop Color="PaleGreen" Offset="0" />
        <GradientStop Color="Green" Offset="1" />
      </RadialGradientBrush>
    </Ellipse.Fill>
  </Ellipse>
  <Ellipse Grid.Row="1" Grid.Column="1">
    <Ellipse.Fill>
      <RadialGradientBrush Center="0.5,0.1" GradientOrigin="0.5,0.1"
                           RadiusX="0.7" RadiusY="0.5">
        <GradientStop Color="#efff" Offset="0" />
        <GradientStop Color="Transparent" Offset="1" />
      </RadialGradientBrush>
    </Ellipse.Fill>
  </Ellipse>
  <Ellipse Grid.RowSpan="3" Grid.ColumnSpan="3">
    <Ellipse.Stroke>
      <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
        <GradientStop Color="Gray" Offset="0" />
        <GradientStop Color="LightGray" Offset="1" />
      </LinearGradientBrush>
    </Ellipse.Stroke>
  </Ellipse>
</Grid>

<!-- End of Example 13-43. -->

</Viewbox>

</Page>
