WPF 窗口 - 只允许水平调整大小 [英] WPF Window - Only allow horizontal resize
本文介绍了WPF 窗口 - 只允许水平调整大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只想允许我的 WPF 窗口水平调整大小.我怎样才能最好地实现这一目标?
I want to only allow my WPF window to be resized horizontally. How best can I achieve this?
推荐答案
如果将窗口的 MinHeight
和 MaxHeight
属性设置为所需的高度,窗口将具有固定高度
If you set the MinHeight
and MaxHeight
attributes of the window to the desired height the window will have a fixed height
这篇关于WPF 窗口 - 只允许水平调整大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文