开发者

ScaleTransform and Image size

I have a Canvas which has an image as background. When I do the ScaleT开发者_开发百科ransform 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?


Set ClipToBounds=True on the Canvas

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜