I am trying to implement panning inside Canvas in scrollviewer, for example:
<ScrollViewer> <Canvas> </Canvas> </ScrollViewer>
I need a click and drag operation in the canvas so that the contents of the canvas move. I tried to handle the MouseDown, MouseMove, and MouseUp events to make the translation described below, but it didn't work.
Any ideas?
source share