PathGeometry

Inheritance: Geometry AvaloniaUI documentation: PathGeometry API

Constructors

ConstructorsDescription

PathGeometry(fillRule: FillRule)

Creates a PathGeometry widget.

PathGeometry(pathData: string, fillRule: FillRule)

Creates a PathGeometry widget.

Properties

PropertiesDescription

reference(value: ViewRef)

Link a ViewRef to access the direct PathGeometry control instance.

Usages

PathGeometry(FillRule.EvenOdd) {
    PathFigure(Point(10., 50.)) {
        ArcSegment(Point(200., 100.), Size(100., 50.))
    }
}

Get access to the underlying AvaloniaUI PathGeometry

let geometryRef = ViewRef<PathGeometry>()

(PathGeometry(FillRule.EvenOdd) {
    PathFigure(Point(10., 50.)) {
        ArcSegment(Point(200., 100.), Size(100., 50.))
    }
})
    .reference(geometryRef)

Last updated