GeometryGroup

Inheritance: Geometry AvaloniaUI documentation: GeometryGroup API

Constructors

ConstructorsDescription

GeometryGroup(fillRule: FillRule)

Creates a GeometryGroup widget.

Properties

PropertiesDescription

reference(value: ViewRef)

Link a ViewRef to access the direct GeometryGroup control instance.

Usages

GeometryGroup(FillRule.EvenOdd) {
    EllipseGeometry(100., 100.).center(Point(150., 150.))
    EllipseGeometry(100., 100.).center(Point(250., 150.))
    EllipseGeometry(100., 100.).center(Point(150., 250.))
    EllipseGeometry(100., 100.).center(Point(250., 250.))
}

Get access to the underlying GeometryGroup

let geometryRef = ViewRef<GeometryGroup>()

(GeometryGroup(FillRule.EvenOdd) {
    EllipseGeometry(100., 100.).center(Point(150., 150.))
    EllipseGeometry(100., 100.).center(Point(250., 150.))
    EllipseGeometry(100., 100.).center(Point(150., 250.))
    EllipseGeometry(100., 100.).center(Point(250., 250.))
})
    .reference(geometryRef)

Last updated