Using a RadialGradientBrush : RadialGradientBrush « Windows Presentation Foundation « VB.Net Tutorial






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

    <Rectangle Width="200" Height="150">
      <Rectangle.Fill>
        <RadialGradientBrush Center="0.45,0.5" RadiusX="0.3" RadiusY="0.5" GradientOrigin="0.25,0.4">
          <GradientStop Color="White" Offset="0" />
          <GradientStop Color="Red" Offset="0.5" />
          <GradientStop Color="DarkBlue" Offset="1" />
        </RadialGradientBrush>
      </Rectangle.Fill>
    </Rectangle>

</Page>
WPF Using A Radial Gradient Brush








16.80.RadialGradientBrush
16.80.1.RadialGradientBrush ExamplesRadialGradientBrush Examples
16.80.2.Fill with offset RadialGradientBrushFill with offset RadialGradientBrush
16.80.3.Using a RadialGradientBrushUsing a RadialGradientBrush
16.80.4.Using RadialGradientBrush to fill a RectangleUsing RadialGradientBrush to fill a Rectangle
16.80.5.RadialGradientBrush.RelativeTransformRadialGradientBrush.RelativeTransform
16.80.6.Use OpacityMask and RadialGradientBrushUse OpacityMask and RadialGradientBrush
16.80.7.RotateTransform RadialGradientBrush.TransformRotateTransform RadialGradientBrush.Transform
16.80.8.RadialGradientBrush and GradientStopRadialGradientBrush and GradientStop
16.80.9.Centered RadialGradientBrush static resourceCentered RadialGradientBrush static resource