Am trying to use the mousewheel to scroll the canvas and I observe that when I try to zoomout the canvas nodes go up first as the scroll bar moves up and then empty area of canvas starts zooming in, similarly for Zoom-in the canvas scrolls first before actual zoomin, and it zooms an empty area. How can I prevent this scroll of canvas itself before actual zoom starts and zoom is focused on the area where elements exist? I know this works out of box in goxam, but I am not sure what is causing this diversion, if you could throw some pointers that I could verify.?
Turns out this was due to a docking layout of devexpress we use in our application. Found the solution from this ticket, it was God sent, else I would never be able to fix this. GoWPF 3.0.3 - Cant zoom out
Yeah trying to figure out the same, my ViewportBoundsChanged is empty and not doing anything, in particular only large diagrams are causing this exception , so digging in
I had set Diagram.Panel.MinimumScale in the initialLayoutComplete and that caused a recursion when I button click zoomIn. Moved all panel properties/events to TemplateApplied event, and its fine now.