I'd appreciate any assistance on this as I feel I have been circling the solution for days.
Here is the scenario:
I have multiple rows of ellipses on a diagram for which the position is persisted to a backing property in my view model.
Using the PenTool, I draw a complex shape on the diagram, whose path is persisted to a backing property in my view model, it is closed and filled using Nonzero.
Upon execution of a command, I collect the selected Ellipses and evaluate whether the Path (which is a PathGeometry from the PenTool) FillContains the positions of the Ellipses.
What I have noticed:
1. The resulting PathGeometry from the PenTool contains a single figure whose StartPoint is often not the position of the of the diagram shape (the CreateShapeGeometry performs some manipulation/normalization within the DrawingService for this.)
2. Regardless of whether I use FillContains or FillContains with detail, the results of examining the ellipse shape points is inconsistent with the visual that is
rendered within the diagram.
Example attached.
Here is the scenario:
I have multiple rows of ellipses on a diagram for which the position is persisted to a backing property in my view model.
Using the PenTool, I draw a complex shape on the diagram, whose path is persisted to a backing property in my view model, it is closed and filled using Nonzero.
Upon execution of a command, I collect the selected Ellipses and evaluate whether the Path (which is a PathGeometry from the PenTool) FillContains the positions of the Ellipses.
What I have noticed:
1. The resulting PathGeometry from the PenTool contains a single figure whose StartPoint is often not the position of the of the diagram shape (the CreateShapeGeometry performs some manipulation/normalization within the DrawingService for this.)
2. Regardless of whether I use FillContains or FillContains with detail, the results of examining the ellipse shape points is inconsistent with the visual that is
rendered within the diagram.
Example attached.