Silverlight 控件的对接

发布于 2024-09-14 23:18:21 字数 284 浏览 2 评论 0原文

我已阅读这个问题,但它仍然解释了如何在 DockPanel 中停靠控件。如何将 DockPanel 停靠在窗口中? alt text

正如您所看到的,地图控件停靠到了 DockPanel,但 DockPanel 并未停靠到窗口。

我缺少什么?

I've read this question, but still, it explains how to dock controls within DockPanel. How does one dock the DockPanel within the window?
alt text

As you can see, the Map control is docked to the DockPanel, but the DockPanel is not docked to the window.

What am I missing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小嗲 2024-09-21 23:18:21

DockPanel中删除Horizo​​ntalAlignmentVerticalAlignment属性,这些属性的默认值是Stretch,这将导致>DockPanel 来填充可用空间。

Remove HorizontalAlignment and VerticalAlignment properties from the DockPanel, the default for these properties is Stretch which will cause the DockPanel to fill the available space.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文