RadialGradientBrush

Inheritance: GradientBrush AvaloniaUI documentation: RadialGradientBrush API

Constructors

ConstructorsDescription

RadialGradientBrush(center: RelativePoint)

Creates a RadialGradientBrush widget.

RadialGradientBrush(center: Point, unit: RelativeUnit)

Creates a RadialGradientBrush widget.

RadialGradientBrush(center: RelativePoint, origin: RelativePoint)

Creates a RadialGradientBrush widget.

RadialGradientBrush(center: Point, origin: Point, unit: RelativeUnit)

Creates a RadialGradientBrush widget.

RadialGradientBrush()

Creates a RadialGradientBrush widget.

Properties

PropertiesDescription

radius(value: float)

Sets the Radius property.

reference(value: ViewRef)

Link a ViewRef to access the direct RadialGradientBrush control instance.

Usages

RadialGradientBrush(Point(0., 0.), Point(0., 0.), RelativeUnit.Absolute) {
    GradientStop(Colors.Black, 0.)
    GradientStop(Colors.Orange, 1.0)
}

Get access to the underlying RadialGradientBrush

let brushesRef = ViewRef<RadialGradientBrush>()

(RadialGradientBrush(Point(0., 0.), Point(0., 0.), RelativeUnit.Absolute) {
    GradientStop(Colors.Black, 0.)
    GradientStop(Colors.Orange, 1.0)
})
    .reference(brushesRef)

Last updated