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.
精彩评论