How do I stop cropping of a transformed (scaled) image in a grid (silverlight)
Posted
by Jeremy
on Stack Overflow
See other posts from Stack Overflow
or by Jeremy
Published on 2009-08-06T19:48:53Z
Indexed on
2010/04/13
20:03 UTC
Read the original article
Hit count: 236
Silverlight
I have a grid with an image in it. Initially, the image is larger than the grid, so it gets cropped which is fine, but if I apply a scaling transform to causing the image to shrink, the portion that was initally cropped remains cropped, but I want it displayed now, because it would fit in the grid.
I concidered putting my image in a canvas, but I want it centered vertically and horizontally, which is giving me trouble, so I switched to a grid.
© Stack Overflow or respective owner