开发者

Vertical scrolling in silverlight

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜