Table of Contents

Class GradientStop

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

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

color Color

The color

offset double

The offset

Fields

ColorProperty

Describes the Color property.

public static readonly StyledProperty<Color> ColorProperty

Field Value

StyledProperty<Color>

OffsetProperty

Describes the Offset property.

public static readonly StyledProperty<double> OffsetProperty

Field Value

StyledProperty<double>

Properties

Color

Gets the gradient stop color.

public Color Color { get; set; }

Property Value

Color

Offset

Gets the gradient stop offset.

public double Offset { get; set; }

Property Value

double