RadialGradientBrush Class
Paints an area with a radial gradient.
Definition
Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public sealed class RadialGradientBrush : GradientBrush,
IRadialGradientBrush, IGradientBrush, IBrush
Public NotInheritable Class RadialGradientBrush
Inherits GradientBrush
Implements IRadialGradientBrush, IGradientBrush, IBrush
[<SealedAttribute>]
type RadialGradientBrush =
class
inherit GradientBrush
interface IRadialGradientBrush
interface IGradientBrush
interface IBrush
end
| Inheritance | Object → AvaloniaObject → Animatable → Brush → GradientBrush → RadialGradientBrush |
| Implements | IBrush, IGradientBrush, IRadialGradientBrush |
Constructors
| RadialGradientBrush() | Initializes a new instance of the RadialGradientBrush class |
Properties
| Center | Gets or sets the start point for the gradient. |
| GradientOrigin | Gets or sets the location of the two-dimensional focal point that defines the beginning of the gradient. |
| GradientStops | (Inherited from GradientBrush) |
| Item(AvaloniaProperty) | Gets or sets the value of a AvaloniaProperty. (Inherited from AvaloniaObject) |
| Item(IndexerDescriptor) | Gets or sets a binding for a AvaloniaProperty. (Inherited from AvaloniaObject) |
| Opacity | Gets or sets the opacity of the brush. (Inherited from Brush) |
| Radius | Gets or sets the horizontal and vertical radius of the outermost circle of the radial gradient. Obsolete. |
| RadiusX | Gets or sets the horizontal radius of the outermost circle of the radial gradient. |
| RadiusY | Gets or sets the vertical radius of the outermost circle of the radial gradient. |
| SpreadMethod | Gets the brush's spread method that defines how to draw a gradient that doesn't fill the bounds of the destination control. (Inherited from GradientBrush) |
| Transform | Gets or sets the transform of the brush. (Inherited from Brush) |
| TransformOrigin | Gets or sets the origin of the brush Transform (Inherited from Brush) |
| Transitions | Gets or sets the property transitions for the control. (Inherited from Animatable) |
Methods
Events
| PropertyChanged | Raised when a AvaloniaProperty value changes on this object. (Inherited from AvaloniaObject) |
Fields
| CenterProperty | Defines the Center property. |
| GradientOriginProperty | Defines the GradientOrigin property. |
| RadiusProperty | Defines the Radius property. Obsolete. |
| RadiusXProperty | Defines the RadiusX property. |
| RadiusYProperty | Defines the RadiusX property. |