GeometryGroup
Inheritance: Geometry\
AvaloniaUI documentation: GeometryGroup API
Constructors
| Constructors |
Description |
| GeometryGroup(fillRule: FillRule) |
Creates a GeometryGroup widget. |
Properties
| Properties |
Description |
| 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)