silverlight 中的垂直滚动
我有一个 silverlight 应用程序,设置为使用 100% 浏览器高度。
当我动态地将控件添加到画布(可以拖动)时,我希望垂直扩展画布。
理想情况下,显示浏览器滚动条,以便用户可以向上或向下移动,如果无法做到这一点,请使用滚动条控件。我还需要处理用户更改浏览器大小的情况。关于如何做到这一点有什么建议吗?
干杯,
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,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需将 Canvas 包裹在 ScrollViewer 中,如下所示:
Jim McCurdy
面对面软件和 YinYangMoney
Just wrap your Canvas inside of a ScrollViewer as follows:
Jim McCurdy
Face to Face Software and YinYangMoney