Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 691 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 691 Bytes

ZoomAndPan

Simple ZoomAndPan on Canvas WPF

A simple controler to use in WPF applications;

N|Solid

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