Indeed -- but this introduces an ugly offset-hop when zooming past the scrollbar threshold.
To be honest I would like to use virtual space, but then I'm fighting against a somehow persistent center point which gets changed by any pan or zoom to point operation and then keeps nearly forever, which especially looks odd when switching content. I know this isn't very helpful -- I tried to mimic the ZoomContentControl-Intro but something must be different.
There is also a general problem with "Zoom to fit" which I cannot narrow down to a reproducible state, I only notice it from time to time: My app has a mode where it calls ZoomToFit() after each Content update, and sometimes the animation does real bad hops (animating in wrong direction first) or even sometimes stops when the content is totally misaligned. The problems stop occuring when setting zoom animation duration to zero.
[Modified 4 years ago]