LinearGradientBrush

Inheritance: GradientBrush AvaloniaUI documentation: LinearGradientBrush API

Constructors

Properties

Usages

LinearGradientBrush() {
    GradientStop(Colors.Blue, 0.)
    GradientStop(Colors.Black, 1.)
}

Get access to the underlying LinearGradientBrush

let brushesRef = ViewRef<LinearGradientBrush>()

(LinearGradientBrush() {
    GradientStop(Colors.Blue, 0.)
    GradientStop(Colors.Black, 1.)
})
    .reference(brushesRef)

Last updated