Show / Hide Table of Contents

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.

Inheritance
System.Object
DependencyObject
Brush
GradientBrush
RadialGradientBrush
Inherited Members
GradientBrush.GradientStopsProperty
GradientBrush.GradientStops
GradientBrush.MappingModeProperty
GradientBrush.MappingMode
GradientBrush.SpreadMethodProperty
GradientBrush.SpreadMethod
GradientBrush.ColorInterpolationModeProperty
GradientBrush.ColorInterpolationMode
Brush.OpacityProperty
Brush.Opacity
Brush.RelativeTransformProperty
Brush.RelativeTransform
Brush.TransformProperty
Brush.Transform
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Media
Assembly: OpenSilver.dll
Syntax
public sealed class RadialGradientBrush : GradientBrush, IDependencyObject

Constructors

| Improve this Doc View Source

RadialGradientBrush()

Initializes a new instance of the RadialGradientBrush class.

Declaration
public RadialGradientBrush()
| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

CenterProperty

Identifies the Center dependency property.

Declaration
public static readonly DependencyProperty CenterProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

GradientOriginProperty

Identifies the GradientOrigin dependency property.

Declaration
public static readonly DependencyProperty GradientOriginProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

RadiusXProperty

Identifies the RadiusX dependency property.

Declaration
public static readonly DependencyProperty RadiusXProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

RadiusYProperty

Identifies the RadiusY dependency property.

Declaration
public static readonly DependencyProperty RadiusYProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

Center

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source