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