Simple ZoomAndPan on Canvas WPF
A simple controler to use in WPF applications;
Compile. Reference the dll and use in your WPF.
xmlns:zoom="clr-namespace:ZoomAndPanSample;assembly=ZoomAndPan"
<zoom:ZoomAndPanControlView Name="pranchazoom"/>
/**/ the canvas to populate is:
this.pranchazoom.GetCanvas();
example:
this.pranchazoom.GetCanvas().Children.Add(UIObject);
Project based on Clifford Nelson code: An Enhanced WPF Custom Control for Zooming and Panning
https://www.codeproject.com/Articles/1119476/An-Enhanced-WPF-Custom-Control-for-Zooming-and-Pan