扩大最大化和移动的窗口
我试图将我的窗口扩大到最大,并且我正在移动它。
但在我移动它之后,窗口又恢复到原来的大小。
知道如何使它成为最大尺寸的沙爹吗?
<Window x:Class="Monitor.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Misc="clr-namespace:Monitor.Misc"
Title="Monitor" Icon="Icon.ico" SizeToContent="WidthAndHeight"
mc:Ignorable="d"
MaxHeight="244" MinHeight="224"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="244" d:DesignWidth="553">
I have trying to expend my window to maximum and them I am moving it .
But after I moved it , the window returns to it's original size .
Any idea how I can make it satay on it's maximum size ?
<Window x:Class="Monitor.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Misc="clr-namespace:Monitor.Misc"
Title="Monitor" Icon="Icon.ico" SizeToContent="WidthAndHeight"
mc:Ignorable="d"
MaxHeight="244" MinHeight="224"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="244" d:DesignWidth="553">
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以设置窗口的
MinWidth
和MinHeight
属性,以匹配MaxWidth
和MaxHeight
的值>。You can set set the
MinWidth
and theMinHeight
properties of the window to match the match the values ofMaxWidth
andMaxHeight
.