How to reset without losing rotation?
#1
Is there a way to reproduce the behavior of ResetToLimits() but keep the current rotation angle?
#2
That is very easy. It can be done with:

ZoomPanel1.SetViewbox(ZoomPanel1.ViewboxLimits);
Andrej Benedik
#3
That worked thanks. Got another question for you: how do you zoom and pan to a specific object in your xaml? Whats the easiest way to accomplish this?
#4
Because this problem is probably interested for other users also I have created a new thread with the solution: http://forum.wpf-graphics.com/showthread.php?tid=200
Andrej Benedik
#5
Had a small issue with this. When I apply a rotation to the zoompanel, using this mechanism to reset zoom no longer works right. It zooms as if it was not rotated. In my case I have a rectangle what will zoom differently if it is landscape vs portrait.
  


Forum Jump:


Users browsing this thread:
1 Guest(s)