Skip to main content
Home Forums Silverlight Programming Report a Silverlight Bug Centered zoom problem
4 replies. Latest Post by silverlightOnly on December 7, 2008.
(0)
silverli...
Member
14 points
6 Posts
12-05-2008 2:52 PM |
Since my post in Programming went unanswered for more than two weeks and I have not seen any working code on the subject, I'll consider this a bug.Problem is related to pan + zoom transformations. There is something wrong with centered zoom (scale) after a pan (translation). My code example is with RenderTransformOrigin centering, but ScaleTransform.CenterX/CenterY was tested as well without success.
Please take a look at the code:http://silverlight.net/forums/p/51139/134135.aspx
StefanWick
Contributor
2864 points
438 Posts
12-06-2008 1:06 AM |
I have replied to your post on the other thread.
Thanks, Stefan Wick
12-06-2008 7:38 PM |
Thank you Stefan, but I dont think we are close to any solution yet. I replied on the other thread too.
12-07-2008 12:43 AM |
I have posted a modified, working version of your sample here:
http://blogs.msdn.com/swick/pages/pan-zoom-example.aspx
12-07-2008 10:20 PM |
Stefan, your code is perfect and solves the problem beautifully. There is still a lingering question on why the matrix version didn't work, but as long as there is an alternative with separate transformations - I'm happy. Thank you very much for your time and knowledge !