RadialGradientBrush and GradientStop : RadialGradientBrush « Windows Presentation Foundation « VB.Net Tutorial






<Window x:Class="RadialGradientBrushExample"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  Title="Radial Gradient" Height="320" Width="368">

  <Canvas>
        <Ellipse x:Name="ellipse1" Stroke="Blue" Width="100"
          Height="100" Margin="5">
          <Ellipse.Fill>
            <RadialGradientBrush GradientOrigin="0.5,0.5"
              Center="0.5,0.5" RadiusX="1" RadiusY="1">
              <GradientStop Color="Red" Offset="0" />
              <GradientStop Color="Yellow" Offset="0.3" />
              <GradientStop Color="Green" Offset="0.6" />
            </RadialGradientBrush>
          </Ellipse.Fill>
        </Ellipse>
  </Canvas>
</Window>
WPF Radial Gradient Brush And Gradient Stop








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