Zoom Pan in WPF Diagram
29 Nov 20241 minute to read
-
We can Zoom in or Zoom out the diagram view. Diagram can be zoomed in or out by simply holding down the Ctrl key and scrolling with your mouse wheel.
-
When a large Diagram is loaded, only certain portion of the Diagram is visible. The remaining portions are clipped. Clipped portions can be explored by scrolling the scrollbars or panning the Diagram.
- IntelliMouse Pan : We can pan the diagram using scroll wheel. To pan, user must hold down the Scroll Wheel anywhere in the diagram and move the cursor towards any direction (for example: On moving cursor towards left direction, diagram will be panned towards left). And releasing Scroll Wheel will stop the panning. Speed of the Panning is proportional to the distance between the Scroll Wheel pressed position and current mouse position, i.e. panning will be faster if the distance is large and slower if the distance is small.
See Also
How to get notified when zooming and panning the diagram?
How to do Panning the diagram in all the directions at a time?
How to bring the specific diagram object to the center or viewport of the Diagram?
How to achieve zoom in or zoom out functionality to ports?
How to get notification when zooming and panning the diagram page?