I have a WPF Canvas and a lot of Shapes (StreamGeometry / Path) added to it. I have ScaleTransform defined to zoom into specific region.
I have zoomed into a arbitrary space in the canvas and the Shapes are scaled. Now, is it possible to get the Shapes that are in the visible region of the Canvas.
Thanks for any pointers.
You can use HitTest to perform a hit test against the Canvas’s bounding rectangle. For details, see Hit Testing in the Visual Layer and refer to the sample for hit testing with DrawingVisuals.