![]() |
|
Click-thru with Drag Pan enabled after drag detected - Printable Version +- AB4D Forum (https://forum.ab4d.com) +-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4) +--- Forum: ZoomPanel (https://forum.ab4d.com/forumdisplay.php?fid=8) +--- Thread: Click-thru with Drag Pan enabled after drag detected (/showthread.php?tid=3971) |
Click-thru with Drag Pan enabled after drag detected - jaredthirsk - 04-06-2016 Hi, I am trying out the ZoomPanel and trying to replicate something I have created using WPF ScrollViewer: 1. Left click inside the scrollable area to click controls on a Canvas inside the ScrollViewer. 2. Press and hold left mouse button to drag. Mouse events are not passed to controls inside the ScrollViewer. Is it possible to do this in ZoomPanel? I have tried setting ZoomMode to ZoomOut, which allows me to left click things inside the ZoomPanel. I then do drag detection while the mouse button is pressed. If it moves so many pixels, I set ZoomMode to Move, and the cursor changes but it doesn't actually start dragging anything. Perhaps there is a private StartDragPan method in there somewhere? Thanks, -Jared RE: Click-thru with Drag Pan enabled after drag detected - abenedik - 04-07-2016 This is a very interesting question. The following code can be used to subscribe to mouse events and manually zoom and pan the content of ZoomPanel (this also allows using Click events): Code: private bool _isMouseDown;The code will be part of the samples in the next version of ZoomPanel. |