In WPF, I have some 2D shapes in canvas. I need to move the view to a specific shape.
When I click on the shape, the view port automatically centers it and zooms in.
Instead of panning and zooming the canvas with the mouse, I want to automatically move the view.
How do we implement this in C# ?
Any answer would be appreciated.