GradientStop

Inheritance: AvaloniaObject AvaloniaUI documentation: GradientStop API

Constructors

ConstructorsDescription

GradientStop(color: Color, offset: float)

Creates a GradientStop widget.

GradientStop(color: string, offset: float)

Creates a GradientStop widget.

Properties

PropertiesDescription

reference(value: ViewRef)

Link a ViewRef to access the direct GradientStop control instance.

Usages

GradientStop(Colors.Blue, 0.)

Get access to the underlying GradientStop

let brushesRef = ViewRef<GradientStop>()

GradientStop(Colors.Blue, 0.)
    .reference(brushesRef)

Last updated