如何将页脚停靠在主窗口的底部? [英] How do I dock a footer to the bottom of the main window?

查看:88
本文介绍了如何将页脚停靠在主窗口的底部?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我是Blend的新手,我正在整理我的第一个WPF应用。我设法创建并将所有元素放置在网格布局中,但我希望页脚总是停靠在窗口的底部,无论窗口是否重新调整大小。我该怎么做?

I'm new on Blend and I'm putting together my first WPF app. I managed to create and place all the elemens in a grid layout, but I want the footer to be always docked to the bottom of the window, no matter if the window is re-sized. How can I do this?

提前致谢!

推荐答案

您希望将DockPanel.Dock属性添加为依赖项,如DockPanel.Dock =" bottom"

You want the DockPanel.Dock property added as dependency so like DockPanel.Dock="bottom"

http://msdn.microsoft.com/en-us/library/system。 windows.controls.dockpanel.dock.aspx

或者如果您已经很好地订购了元素并且正在拉伸水平对齐它会完成同样的事情。

Or if you've ordered your elements well and are stretching the horizontal alignment it would accomplish the same thing.


这篇关于如何将页脚停靠在主窗口的底部?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆