Pen

Inheritance: AvaloniaObject AvaloniaUI documentation: Pen API

Constructors

Properties

Usages

Pen(SolidColorBrush(Colors.Red), 0.)
    .dashStyle(DashStyle([ 2.; 2. ], 0.))
    .lineCap(PenLineCap.Flat)
    .lineJoin(PenLineJoin.Miter)
    .miterLimit(0.)

Get access to the underlying Pen

let penRef = ViewRef<Pen>()

Pen(SolidColorBrush(Colors.Red), 0.)
    .dashStyle(DashStyle([ 2.; 2. ], 0.))
    .lineCap(PenLineCap.Flat)
    .lineJoin(PenLineJoin.Miter)
    .miterLimit(0.)
    .reference(penRef)

Last updated