Silverlight 控件的对接
我已阅读这个问题,但它仍然解释了如何在 DockPanel 中停靠控件。如何将 DockPanel 停靠在窗口中?
正如您所看到的,地图控件停靠到了 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?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从
DockPanel
中删除HorizontalAlignment
和VerticalAlignment
属性,这些属性的默认值是Stretch
,这将导致>DockPanel
来填充可用空间。Remove
HorizontalAlignment
andVerticalAlignment
properties from theDockPanel
, the default for these properties isStretch
which will cause theDockPanel
to fill the available space.