我有一个窗口。它的财产是:
<Window x:Class="Student.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="996" Width="1191"
xmlns:my="clr-namespace:Student"
Loaded="Window_Loaded"
WindowState="Maximized">
在“Windows XP”中运行此窗口时,窗口将完全正确显示。但是如果在“Windows 7”中打开窗口,则窗口的高度不合适,但宽度是正常的。高度大于显示器,窗口底部未安装在显示器中。我希望窗口将显示,并且不会大于“Windows 7”中显示的高度。 如何解决?
答案 0 :(得分:0)
我只是降低了窗户的高度,它有助于我的窗户正确适合:)。
<Window x:Class="Student.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="850" Width="1191"
xmlns:my="clr-namespace:Student"
Loaded="Window_Loaded"
WindowState="Maximized">