11-02-2011, 09:31 PM
Is there a way to reproduce the behavior of ResetToLimits() but keep the current rotation angle?
How to reset without losing rotation?
|
11-02-2011, 09:31 PM
Is there a way to reproduce the behavior of ResetToLimits() but keep the current rotation angle?
11-03-2011, 08:57 PM
That is very easy. It can be done with:
ZoomPanel1.SetViewbox(ZoomPanel1.ViewboxLimits);
Andrej Benedik
11-04-2011, 08:08 PM
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?
11-08-2011, 01:58 PM
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
11-14-2011, 08:18 PM
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.
|
Users browsing this thread: |
1 Guest(s) |