开发者

Vertical scrolling in silverlight

开发者 https://www.devze.com 2022-12-23 21:10 出处:网络
I have a silverlight application that is set to use 100% browser height. As I dynamically add controls to a canvas (which can be dragged around), I would like the expand the canvas vertically.

I have a silverlight application that is set to use 100% browser height.

As I dynamically add controls to a canvas (which can be dragged around), I would like the expand the canvas vertically.

Ideally show the browser scrollbar so the user can move up or down, if that can't be done, use the scrollbar control. I would also need to handle the user changing the size of the browser. Any suggestions on how to do this 开发者_运维问答?

Cheers,


Just wrap your Canvas inside of a ScrollViewer as follows:

<ScrollViewer>
    <Canvas>
        ...
    </Canvas>
</ScrollViewer>

Jim McCurdy
Face to Face Software and YinYangMoney

0

精彩评论

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

关注公众号