开发者

Canvas scroll in wpf when scaled transformed

I have customized a canvas to support the zooming. I am doing this by scale transformation. I have scroll viewer wrapped around canvas but scroll bars are not visible when canvas is zoomed.

I came to know that s开发者_开发问答cale transformation does not changes the actual size of the UIElement that is why scroll bars are not visible when canvas is zoomed.

Is there any alternate solution to this?


You can increase the actual size instead by either binding the scroll bar to the size. Or you can use LayoutTransfrom instead: read here about the difference between it and RenderTransform.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜