Page 1 of 1

Changing Pan and Zoom behavior

Posted: Wed Feb 25, 2015 10:42 am
by Oliver Heilig
Hello,

i was asked if it is possible to change the pan/zoom behavior, so the user can explicitly switch between drag and select instead of holding down the Shift key. We think it is useful to have some kind of MouseDragMode in the next release of the SDK, but currently this is not supported.

However, with the current release you can add this function by replacing the default PanAndZoom interactor with a custom one. The sample CustomPanAndZoom in our GitHub sample-repository shows this practice.

https://github.com/ptv-logistics/xservernet-bin

Image

You can also use this as template to completely change the pan/zoom behavior.

- Oliver

Re: Changing Pan and Zoom behavior

Posted: Fri Feb 27, 2015 8:17 am
by Patricia
Hello,
In https://github.com/ptv-logistics/xservernet-bin -- > CustomPanAndZoom , I could not find the file Window1.xaml.
I think that in the project missing some files.

Thanks.

Patricia

Re: Changing Pan and Zoom behavior

Posted: Fri Feb 27, 2015 1:36 pm
by Oliver Heilig
Uups, you're right. I've added the missing file.

Tanks,

Oliver

Re: Changing Pan and Zoom behavior

Posted: Mon Mar 02, 2015 12:01 pm
by Oliver Heilig
I've added a second option to disable the zoom on double-click.