Class GradientStop
Describes the location and color of a transition point in a gradient.
public sealed class GradientStop : AvaloniaObject, INotifyPropertyChanged, IGradientStop
- Inheritance
-
GradientStop
- Implements
- Inherited Members
- Extension Methods
Constructors
GradientStop()
Initializes a new instance of the GradientStop class.
public GradientStop()
GradientStop(Color, double)
Initializes a new instance of the GradientStop class.
public GradientStop(Color color, double offset)
Parameters
Fields
ColorProperty
Describes the Color property.
public static readonly StyledProperty<Color> ColorProperty
Field Value
OffsetProperty
Describes the Offset property.
public static readonly StyledProperty<double> OffsetProperty
Field Value
Properties
Color
Gets the gradient stop color.
public Color Color { get; set; }
Property Value
Offset
Gets the gradient stop offset.
public double Offset { get; set; }