Class RadialGradientBrush
Paints an area with a radial gradient. A focal point defines the beginning of the gradient, and a circle defines the end point of the gradient.
Inherited Members
Namespace: System.Windows.Media
Assembly: OpenSilver.dll
Syntax
public sealed class RadialGradientBrush : GradientBrush, IDependencyObject
Constructors
| Improve this Doc View SourceRadialGradientBrush()
Initializes a new instance of the RadialGradientBrush class.
Declaration
public RadialGradientBrush()
RadialGradientBrush(Color, Color)
Initializes a new instance of the RadialGradientBrush class with the specified start and stop colors.
Declaration
public RadialGradientBrush(Color startColor, Color endColor)
Parameters
Type | Name | Description |
---|---|---|
Color | startColor | Color value at the focus (GradientOrigin) of the radial gradient. |
Color | endColor | Color value at the outer edge of the radial gradient. |
RadialGradientBrush(GradientStopCollection)
Initializes a new instance of the RadialGradientBrush class that has the specified gradient stops.
Declaration
public RadialGradientBrush(GradientStopCollection gradientStopCollection)
Parameters
Type | Name | Description |
---|---|---|
GradientStopCollection | gradientStopCollection | The gradient stops to set on this brush. |
Fields
| Improve this Doc View SourceCenterProperty
Identifies the Center dependency property.
Declaration
public static readonly DependencyProperty CenterProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
GradientOriginProperty
Identifies the GradientOrigin dependency property.
Declaration
public static readonly DependencyProperty GradientOriginProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
RadiusXProperty
Identifies the RadiusX dependency property.
Declaration
public static readonly DependencyProperty RadiusXProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
RadiusYProperty
Identifies the RadiusY dependency property.
Declaration
public static readonly DependencyProperty RadiusYProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceCenter
Gets or sets the center of the outer circle of the radial gradient.
Declaration
public Point Center { get; set; }
Property Value
Type | Description |
---|---|
Point | The two-dimensional point located at the center of the radial gradient. The default value is a Point with value 0.5,0.5. |
GradientOrigin
Gets or sets the location of the focal point that defines the beginning of the gradient.
Declaration
public Point GradientOrigin { get; set; }
Property Value
Type | Description |
---|---|
Point | The two-dimensional point located at the center of the radial gradient. The default value is a Point with value 0.5,0.5. |
RadiusX
Gets or sets the horizontal radius of the outer circle of the radial gradient.
Declaration
public double RadiusX { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The horizontal radius of the outermost circle of the radial gradient. The default is 0.5. |
RadiusY
Gets or sets the vertical radius of the outer circle of a radial gradient.
Declaration
public double RadiusY { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The vertical radius of the outer circle of a radial gradient. The default is 0.5. |