Show all objects on canvas in window
Posted
by Number8
on Stack Overflow
See other posts from Stack Overflow
or by Number8
Published on 2010-04-13T20:27:08Z
Indexed on
2010/04/14
3:23 UTC
Read the original article
Hit count: 268
Silverlight
Hello --
We have a canvas with a large number of objects. The user can pan and zoom the view of the canvas.
I am trying to figure out how to implement "show entire canvas" -- that is, zoom and center the canvas in the window to show all objects. We know the max and min X and Y coordinates.
I am looking at our current zoom and pan implementations to try to figure out if there is a way to use them.
Any suggestions on how to do this would be appreciated...
Thanks.
© Stack Overflow or respective owner