ScaleTransform and Image size

Posted by Vinjamuri on Stack Overflow See other posts from Stack Overflow or by Vinjamuri
Published on 2010-04-15T21:59:22Z Indexed on 2010/04/15 22:03 UTC
Read the original article Hit count: 472

Filed under:
|

I have a Canvas which has an image as background. When I do the ScaleTransform to increase the size of the image, the image blows out of the Canvas. Although I increase the size, I don't want the image to go out of the Canvas, I just want it to fit inside the Canvas. How to fix this issue in WPF?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about wpf-controls