GradientStop

Inheritance: AvaloniaObject AvaloniaUI documentation: GradientStop API

Constructors

Constructors
Description

GradientStop(color: Color, offset: float)

Creates a GradientStop widget.

GradientStop(color: string, offset: float)

Creates a GradientStop widget.

Properties

Properties
Description

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