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.
Implements
Inherited Members
Namespace: System.Windows.Media
Assembly: OpenSilver.dll
Syntax
public sealed class RadialGradientBrush : GradientBrush, IHasAccessToPropertiesWhereItIsUsed
Constructors
| Improve this Doc View SourceRadialGradientBrush()
Initializes a new instance of the System.Windows.Media.RadialGradientBrush class.
Declaration
public RadialGradientBrush()
RadialGradientBrush(Color, Color)
Initializes a new instance of the System.Windows.Media.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 (System.Windows.Media.RadialGradientBrush.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 System.Windows.Media.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 outermost circle of the radial gradient.
Declaration
public Point Center { get; set; }
Property Value
Type | Description |
---|---|
Point |
GradientOrigin
Gets or sets the location of the two-dimensional focal point that defines the beginning of the gradient. The default is (0.5, 0.5).
Declaration
public Point GradientOrigin { get; set; }
Property Value
Type | Description |
---|---|
Point |
RadiusX
Gets or sets the horizontal radius of the outermost circle of the radial gradient.
Declaration
public double RadiusX { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
RadiusY
Gets or sets the vertical radius of the outermost circle of a radial gradient.
Declaration
public double RadiusY { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceConvertToCSSValues(DependencyObject)
Declaration
public List<object> ConvertToCSSValues(DependencyObject parent)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | parent |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.Object> |