Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

ScrollBar for Canvas as Container

$
0
0

Hi,

I have a master canvas which accepts any images and shapes.

When a rectangle is added into this master canvas i am creating a child canvas inside rectangle to hold any objects inside rectangle.

So, here rectangle acts as a container.

lets say my master canvas size is 500,500.

and master canvas has only one child that is rectangle of size 50,50 in position 0,0.

as per canvas logic, there is no need for scroll bar, and it is not displayed. (working okay).

But when i add an image of size 600,600 inside that small rectangle, it is expected to show the scroll bar which is not happening as image is not a direct child of master canvas.

Please help me resolve this issue.

Thank you in advance,

regards,

Sasikala


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>